Corrected LEF read routine so as not to truncate LEF "CLASS" to a

single token (LEF CLASS records may have a subclass, such as "PAD
INPUT").
This commit is contained in:
Tim Edwards 2020-03-30 09:36:24 -04:00
parent 70613a3778
commit b5e06455c5
2 changed files with 8 additions and 4 deletions

View File

@ -1 +1 @@
8.2.205
8.2.206

View File

@ -1593,10 +1593,14 @@ LefReadMacro(f, mname, oscale, importForeign)
switch (keyword)
{
case LEF_CLASS:
strcpy(tsave, "");
token = LefNextToken(f, TRUE);
if (*token != '\n')
DBPropPut(lefMacro, "LEFclass", StrDup((char **)NULL, token));
LefEndStatement(f);
while (*token != ';')
{
sprintf(tsave + strlen(tsave), " %s", token);
token = LefNextToken(f, TRUE);
}
DBPropPut(lefMacro, "LEFclass", StrDup((char **)NULL, tsave + 1));
break;
case LEF_SIZE:
token = LefNextToken(f, TRUE);