mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-08-22 06:07:34 +02:00
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:
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user