Removed some diagnostic messages from "def write", and added code to

prevent "def write" from running on an unnamed cell.
This commit is contained in:
Tim Edwards 2022-03-29 17:10:50 -04:00
parent 0c584f9e77
commit bfa4272481
1 changed files with 9 additions and 3 deletions

View File

@ -1039,7 +1039,8 @@ defNetGeometryFunc(tile, plane, defdata)
}
/* Diagnostic */
TxPrintf("Net at (%d, %d) has width %d, default width is %d\n",
if ((h != routeWidth) && (w != routeWidth))
TxPrintf("Net at (%d, %d) has width %d, default width is %d\n",
r.r_xbot, r.r_ybot,
(h < w) ? h : w, routeWidth);
@ -1785,8 +1786,7 @@ defCountViaFunc(tile, cviadata)
he = HashFind(defViaTable, posstr);
HashSetValue(he, lefl);
/* XXX WIP XXX */
TxPrintf("Via name \"%s\" hashed as \"%s\"\n", lefl->canonName, posstr);
/* TxPrintf("Via name \"%s\" hashed as \"%s\"\n", lefl->canonName, posstr); */
return 0; /* Keep the search going */
}
@ -2667,6 +2667,12 @@ DefWriteCell(def, outName, allSpecial, units)
scale = CIFGetOutputScale(1000 / units);
if (!strcmp(def->cd_name, UNNAMED))
{
TxError("Please name the cell before generating DEF.\n");
return;
}
f = lefFileOpen(def, outName, ".def", "w", &filename);
TxPrintf("Generating DEF output %s for cell %s:\n", filename, def->cd_name);