From 742a1dbac48c3ce446d9bdc987973e8a6566ab14 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Tue, 27 Mar 2018 18:18:26 -0400 Subject: [PATCH] Corrected an error in which ext2spice fails on hierarchies of cells with abstract views on all leaf nodes using the "LEFview" property to declare the cell view to be abstract. Such cells were being misinterpreted as containing no active devices. --- extflat/EFflat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/extflat/EFflat.c b/extflat/EFflat.c index aa5088ff..c3e2ca20 100644 --- a/extflat/EFflat.c +++ b/extflat/EFflat.c @@ -389,9 +389,12 @@ efFlatNodesDeviceless(hc, cdata) /* If this definition has no devices but has ports, then it is treated */ /* as a black-box device, so don't decrement the use count of the */ - /* parent. */ + /* parent. Alternately, devices flagged "abstract" are automatically */ + /* treated as black-box devices. */ + if (!(hc->hc_use->use_def->def_flags & DEF_SUBCIRCUIT)) - (*usecount)--; + if (!(hc->hc_use->use_def->def_flags & DEF_ABSTRACT)) + (*usecount)--; } return (0); }