Added an error message when writing GDS if any cell being written

still has the default "(UNNAMED)" cell name;  this is not strictly
an error, but is almost certainly not what the user intended.
This commit is contained in:
Tim Edwards 2021-11-08 10:25:38 -05:00
parent 9af83abfe5
commit f6695cea52
2 changed files with 12 additions and 1 deletions

View File

@ -1 +1 @@
8.3.224
8.3.225

View File

@ -879,6 +879,17 @@ calmaProcessDef(def, outf, do_library)
return (0);
}
/*
* Flag an error if attempting to write the default (UNNAMED) cell
* into GDS. This is not strictly an error but is almost certainly
* not what the user intended.
*/
if (!strcmp(def->cd_name, UNNAMED))
{
TxError("Error: Cell has the default name \"%s\"!\n", UNNAMED);
}
/*
* Check if this is a read-only file that is supposed to be copied
* verbatim from input to output. If so, do the direct copy. If