Corrected the GDS read routine so that the "gds noduplicates"

option does not get undermined by GDS files that have cell
instances appear before cell definitions.
This commit is contained in:
Tim Edwards 2021-06-12 11:40:13 -04:00
parent e9f21885b3
commit 75386e6467
2 changed files with 14 additions and 2 deletions

View File

@ -1 +1 @@
8.3.176
8.3.177

View File

@ -1262,7 +1262,19 @@ calmaFindCell(name, was_called, predefined)
if (was_called) *was_called = FALSE;
}
else
if (was_called) *was_called = TRUE;
{
if (was_called)
{
if (*was_called == TRUE)
{
def = DBCellLookDef(name);
if ((def != NULL) && (def->cd_flags & CDAVAILABLE))
if (CalmaNoDuplicates)
if (predefined) *predefined = TRUE;
}
*was_called = TRUE;
}
}
return (CellDef *) HashGetValue(h);
}