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;
|
||||
break;
|
||||
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);
|
||||
if (sscanf(token, "%d", &encbx) != 1)
|
||||
{
|
||||
|
|
@ -1379,6 +1367,18 @@ DefReadVias(f, sname, oscale, total)
|
|||
LefError(DEF_ERROR, "Invalid syntax for ENCLOSURE.\n");
|
||||
/* 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;
|
||||
break;
|
||||
case DEF_VIAS_PROP_ROWCOL:
|
||||
|
|
|
|||
Loading…
Reference in New Issue