Added the ability to track the first CellDef to fail to read and

report it after "Failure to read in entire sub-tree".  This will
not report every failing cell (since it quits reading after the
first failure) but will avoid the existing issue of printing
nothing and leaving the user with no feedback as to which cell
was the problem.
This commit is contained in:
Tim Edwards
2024-04-29 17:43:37 -04:00
parent 41e65b5214
commit 0ae54b500a
10 changed files with 59 additions and 27 deletions
+4 -2
View File
@@ -2178,7 +2178,7 @@ LefWriteAll(rootUse, writeTopCell, lefTech, lefHide, lefPinOnly, lefTopLayer,
bool recurse;
{
HashTable propHashTbl, siteHashTbl;
CellDef *def, *rootdef;
CellDef *def, *rootdef, *err_def;
FILE *f;
char *filename;
float scale = CIFGetOutputScale(1000); /* conversion to microns */
@@ -2186,9 +2186,11 @@ LefWriteAll(rootUse, writeTopCell, lefTech, lefHide, lefPinOnly, lefTopLayer,
rootdef = rootUse->cu_def;
/* Make sure the entire subtree is read in */
if (DBCellReadArea(rootUse, &rootdef->cd_bbox, TRUE))
err_def = DBCellReadArea(rootUse, &rootdef->cd_bbox, TRUE);
if (err_def != NULL)
{
TxError("Could not read entire subtree of the cell.\n");
TxError("Failed on cell %s.\n", err_def->cd_name);
return;
}