One additional modification to output the message about duplicate

cells as a "note" if "gds noduplicates" has been set, and a
"warning" otherwise.  This makes error handling of magic's
output a bit easier.
This commit is contained in:
R. Timothy Edwards 2025-10-01 15:38:41 -04:00
parent 78f7d22796
commit bb131f14d0
1 changed files with 7 additions and 2 deletions

View File

@ -1428,13 +1428,18 @@ calmaFindCell(
}
else
{
TxPrintf("Warning: cell %s already existed before reading GDS!\n",
name);
if (CalmaNoDuplicates)
{
TxPrintf("Note: cell %s already existed before reading GDS.\n",
name);
if (predefined) *predefined = TRUE;
TxPrintf("Using pre-existing cell definition\n");
}
else
{
TxPrintf("Warning: cell %s already existed before reading GDS!\n",
name);
}
if (was_called) *was_called = TRUE;
}
HashSetValue(h, def);