diff --git a/lef/defWrite.c b/lef/defWrite.c index 80b8323c..a12b008b 100644 --- a/lef/defWrite.c +++ b/lef/defWrite.c @@ -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);