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:
Tim Edwards 2020-05-27 18:02:36 -04:00
parent b6f4553cef
commit e63e8f5761
2 changed files with 13 additions and 13 deletions

View File

@ -1 +1 @@
8.3.16 8.3.17

View File

@ -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: