From b5e06455c5f730ec0900c22b657958c709593c06 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Mon, 30 Mar 2020 09:36:24 -0400 Subject: [PATCH] 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"). --- VERSION | 2 +- lef/lefRead.c | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 9a0e0780..5d1c3dfd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.2.205 +8.2.206 diff --git a/lef/lefRead.c b/lef/lefRead.c index ed4433d2..902837bf 100644 --- a/lef/lefRead.c +++ b/lef/lefRead.c @@ -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);