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) switch (keyword)
{ {
case LEF_CLASS: case LEF_CLASS:
strcpy(tsave, "");
token = LefNextToken(f, TRUE); token = LefNextToken(f, TRUE);
if (*token != '\n') while (*token != ';')
DBPropPut(lefMacro, "LEFclass", StrDup((char **)NULL, token)); {
LefEndStatement(f); sprintf(tsave + strlen(tsave), " %s", token);
token = LefNextToken(f, TRUE);
}
DBPropPut(lefMacro, "LEFclass", StrDup((char **)NULL, tsave + 1));
break; break;
case LEF_SIZE: case LEF_SIZE:
token = LefNextToken(f, TRUE); token = LefNextToken(f, TRUE);