Corrected the expected position of top and bottom layers in a
DEF VIA ENCLOSURE when doing "def read". Thanks to Ahmed Ghazy for finding the error and providing the patch.
This commit is contained in:
parent
b6f4553cef
commit
e63e8f5761
|
|
@ -1355,18 +1355,6 @@ DefReadVias(f, sname, oscale, total)
|
||||||
generated = TRUE;
|
generated = TRUE;
|
||||||
break;
|
break;
|
||||||
case DEF_VIAS_PROP_ENCLOSURE:
|
case DEF_VIAS_PROP_ENCLOSURE:
|
||||||
token = LefNextToken(f, TRUE);
|
|
||||||
if (sscanf(token, "%d", &enctx) != 1)
|
|
||||||
{
|
|
||||||
LefError(DEF_ERROR, "Invalid syntax for ENCLOSURE.\n");
|
|
||||||
/* To do: Get cut enclosures from DRC ruleset */
|
|
||||||
}
|
|
||||||
token = LefNextToken(f, TRUE);
|
|
||||||
if (sscanf(token, "%d", &encty) != 1)
|
|
||||||
{
|
|
||||||
LefError(DEF_ERROR, "Invalid syntax for ENCLOSURE.\n");
|
|
||||||
/* To do: Get cut enclosures from DRC ruleset */
|
|
||||||
}
|
|
||||||
token = LefNextToken(f, TRUE);
|
token = LefNextToken(f, TRUE);
|
||||||
if (sscanf(token, "%d", &encbx) != 1)
|
if (sscanf(token, "%d", &encbx) != 1)
|
||||||
{
|
{
|
||||||
|
|
@ -1379,6 +1367,18 @@ DefReadVias(f, sname, oscale, total)
|
||||||
LefError(DEF_ERROR, "Invalid syntax for ENCLOSURE.\n");
|
LefError(DEF_ERROR, "Invalid syntax for ENCLOSURE.\n");
|
||||||
/* To do: Get cut enclosures from DRC ruleset */
|
/* To do: Get cut enclosures from DRC ruleset */
|
||||||
}
|
}
|
||||||
|
token = LefNextToken(f, TRUE);
|
||||||
|
if (sscanf(token, "%d", &enctx) != 1)
|
||||||
|
{
|
||||||
|
LefError(DEF_ERROR, "Invalid syntax for ENCLOSURE.\n");
|
||||||
|
/* To do: Get cut enclosures from DRC ruleset */
|
||||||
|
}
|
||||||
|
token = LefNextToken(f, TRUE);
|
||||||
|
if (sscanf(token, "%d", &encty) != 1)
|
||||||
|
{
|
||||||
|
LefError(DEF_ERROR, "Invalid syntax for ENCLOSURE.\n");
|
||||||
|
/* To do: Get cut enclosures from DRC ruleset */
|
||||||
|
}
|
||||||
generated = TRUE;
|
generated = TRUE;
|
||||||
break;
|
break;
|
||||||
case DEF_VIAS_PROP_ROWCOL:
|
case DEF_VIAS_PROP_ROWCOL:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue