Corrected the "lef writeall" command to add the "-hide" option, as
is available for "lef write". This was inadvertently omitted.
This commit is contained in:
parent
b6cb1fb54a
commit
7413d89da1
|
|
@ -1434,7 +1434,7 @@ CmdCif(w, cmd)
|
||||||
if (!ToolGetBox(&rootDef, &box))
|
if (!ToolGetBox(&rootDef, &box))
|
||||||
{
|
{
|
||||||
TxError("Use the box to select the area in");
|
TxError("Use the box to select the area in");
|
||||||
TxError(" which you want to see CIF.\n");
|
TxError(" which you want to paint CIF.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (argc == 5)
|
if (argc == 5)
|
||||||
|
|
|
||||||
|
|
@ -361,7 +361,8 @@ drcWhyCreate(whystring)
|
||||||
int i;
|
int i;
|
||||||
char **newList;
|
char **newList;
|
||||||
newList = (char **)mallocMagic((DRCCurStyle->DRCWhySize + 51) * sizeof(char *));
|
newList = (char **)mallocMagic((DRCCurStyle->DRCWhySize + 51) * sizeof(char *));
|
||||||
for (i = 0; i < DRCCurStyle->DRCWhySize; i++)
|
newList[0] = (char *)NULL;
|
||||||
|
for (i = 1; i <= DRCCurStyle->DRCWhySize; i++)
|
||||||
newList[i] = DRCCurStyle->DRCWhyList[i];
|
newList[i] = DRCCurStyle->DRCWhyList[i];
|
||||||
if (DRCCurStyle->DRCWhySize > 0)
|
if (DRCCurStyle->DRCWhySize > 0)
|
||||||
freeMagic((char *)DRCCurStyle->DRCWhyList);
|
freeMagic((char *)DRCCurStyle->DRCWhyList);
|
||||||
|
|
|
||||||
|
|
@ -190,13 +190,15 @@ CmdLef(w, cmd)
|
||||||
lefTopCell = FALSE;
|
lefTopCell = FALSE;
|
||||||
else if (!strncmp(cmd->tx_argv[i], "-tech", 5))
|
else if (!strncmp(cmd->tx_argv[i], "-tech", 5))
|
||||||
lefTech = TRUE;
|
lefTech = TRUE;
|
||||||
|
else if (!strncmp(cmd->tx_argv[i], "-hide", 5))
|
||||||
|
lefHide = TRUE;
|
||||||
else if (!strncmp(cmd->tx_argv[i], "-all", 4))
|
else if (!strncmp(cmd->tx_argv[i], "-all", 4))
|
||||||
recurse = TRUE;
|
recurse = TRUE;
|
||||||
else goto wrongNumArgs;
|
else goto wrongNumArgs;
|
||||||
}
|
}
|
||||||
else goto wrongNumArgs;
|
else goto wrongNumArgs;
|
||||||
}
|
}
|
||||||
LefWriteAll(selectedUse, lefTopCell, lefTech, recurse);
|
LefWriteAll(selectedUse, lefTopCell, lefTech, lefHide, recurse);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case LEF_WRITE:
|
case LEF_WRITE:
|
||||||
|
|
|
||||||
|
|
@ -1133,10 +1133,11 @@ lefWriteMacro(def, f, scale, hide)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void
|
void
|
||||||
LefWriteAll(rootUse, writeTopCell, lefTech, recurse)
|
LefWriteAll(rootUse, writeTopCell, lefTech, lefHide, recurse)
|
||||||
CellUse *rootUse;
|
CellUse *rootUse;
|
||||||
bool writeTopCell;
|
bool writeTopCell;
|
||||||
bool lefTech;
|
bool lefTech;
|
||||||
|
bool lefHide;
|
||||||
bool recurse;
|
bool recurse;
|
||||||
{
|
{
|
||||||
CellDef *def, *rootdef;
|
CellDef *def, *rootdef;
|
||||||
|
|
@ -1190,7 +1191,7 @@ LefWriteAll(rootUse, writeTopCell, lefTech, recurse)
|
||||||
{
|
{
|
||||||
def->cd_client = (ClientData) 0;
|
def->cd_client = (ClientData) 0;
|
||||||
if (!SigInterruptPending)
|
if (!SigInterruptPending)
|
||||||
lefWriteMacro(def, f, scale);
|
lefWriteMacro(def, f, scale, lefHide);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* End the LEF file */
|
/* End the LEF file */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue