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