Implemented glob-style matching for label selection. Introduces

an optional extra argument to the "select" command that can be used
to select labels by glob-style matching;  e.g., "select area labels
VSS*" or "select less area labels *_1".  This will help in managing
labels after flattening a standard cell design;  e.g., by using
"select less area labels */VDD".
This commit is contained in:
Tim Edwards
2021-10-09 13:44:04 -04:00
parent 537b1f057d
commit 2f7813094b
10 changed files with 273 additions and 40 deletions
+4 -4
View File
@@ -1432,7 +1432,7 @@ lefWriteMacro(def, f, scale, setback, pinonly, toplayer, domaster)
{
Rect psetback;
GEO_EXPAND(&boundary, -pinonly, &psetback);
SelRemoveArea(&psetback, &DBAllButSpaceAndDRCBits);
SelRemoveArea(&psetback, &DBAllButSpaceAndDRCBits, NULL);
}
}
@@ -1461,14 +1461,14 @@ lefWriteMacro(def, f, scale, setback, pinonly, toplayer, domaster)
SelectNet(&scx, lab->lab_type, 0, NULL, FALSE);
GEO_EXPAND(&boundary, -setback, &carea);
SelRemoveArea(&carea, &DBAllButSpaceAndDRCBits);
SelRemoveArea(&carea, &DBAllButSpaceAndDRCBits, NULL);
/* Apply any additional setback from the "-pinonly" option */
if (pinonly > setback)
{
Rect psetback;
GEO_EXPAND(&boundary, -pinonly, &psetback);
SelRemoveArea(&psetback, &DBAllButSpaceAndDRCBits);
SelRemoveArea(&psetback, &DBAllButSpaceAndDRCBits, NULL);
}
/* Paint over the label area so that labels do not simply */
@@ -1487,7 +1487,7 @@ lefWriteMacro(def, f, scale, setback, pinonly, toplayer, domaster)
{
Rect psetback;
GEO_EXPAND(&boundary, -pinonly, &psetback);
SelRemoveArea(&psetback, &DBAllButSpaceAndDRCBits);
SelRemoveArea(&psetback, &DBAllButSpaceAndDRCBits, NULL);
/* Paint over the label area so that labels do not simply */
/* disappear by being inside the setback area. */