From 0cd45ae6f746839d0e72c4ba63ed65b14830122d Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 5 Jun 2019 16:48:45 -0400 Subject: [PATCH] Modified the cell clear routine so that it removes properties in addition to subcells, paint, and labels. Otherwise problems arise if a cell is read from LEF followed by GDS; the GDS view overwrites the LEF but the property "LEFview" remains and causes problems when writing GDS output subsequently. --- database/DBcellsubr.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/database/DBcellsubr.c b/database/DBcellsubr.c index a430d671..4b9f96a8 100644 --- a/database/DBcellsubr.c +++ b/database/DBcellsubr.c @@ -157,7 +157,8 @@ dbCopyDefFunc(tile, def) * DBCellClearDef -- * * Empties out all tile planes of the indicated CellDef, making it - * as though the def had been newly allocated. + * as though the def had been newly allocated. This also removes all + * labels and all properties from the cell. * * Results: * None. @@ -221,6 +222,10 @@ DBCellClearDef(cellDef) freeMagic((char *) lab); cellDef->cd_labels = (Label *) NULL; cellDef->cd_lastLabel = (Label *) NULL; + + /* Remove all defined properties */ + DBPropClearAll(cellDef); + SigEnableInterrupts(); }