Skip over BLOCKAGES section when reading DEF files

I'm seeing warnings when parsing a DEF with BLOCKAGES in it:

DEF read, Line 572201 (Message): Unknown keyword "BLOCKAGES" in DEF file; ignoring.
DEF read, Line 572202 (Message): Unknown keyword "-" in DEF file; ignoring.
DEF read, Line 572205 (Error): END statement out of context.

Skip over the section.
This commit is contained in:
Anton Blanchard 2021-01-13 20:15:43 +11:00 committed by Tim Edwards
parent 71fbcaca6e
commit e30472d009
1 changed files with 5 additions and 1 deletions

View File

@ -1701,7 +1701,7 @@ enum def_sections {DEF_VERSION = 0, DEF_NAMESCASESENSITIVE,
DEF_HISTORY, DEF_DIEAREA, DEF_COMPONENTS, DEF_VIAS, DEF_HISTORY, DEF_DIEAREA, DEF_COMPONENTS, DEF_VIAS,
DEF_PINS, DEF_PINPROPERTIES, DEF_SPECIALNETS, DEF_PINS, DEF_PINPROPERTIES, DEF_SPECIALNETS,
DEF_NETS, DEF_IOTIMINGS, DEF_SCANCHAINS, DEF_NETS, DEF_IOTIMINGS, DEF_SCANCHAINS,
DEF_CONSTRAINTS, DEF_GROUPS, DEF_EXTENSION, DEF_CONSTRAINTS, DEF_GROUPS, DEF_EXTENSION, DEF_BLOCKAGES,
DEF_END}; DEF_END};
void void
@ -1743,6 +1743,7 @@ DefRead(inName, dolabels)
"CONSTRAINTS", "CONSTRAINTS",
"GROUPS", "GROUPS",
"BEGINEXT", "BEGINEXT",
"BLOCKAGES",
"END", "END",
NULL NULL
}; };
@ -1908,6 +1909,9 @@ DefRead(inName, dolabels)
case DEF_EXTENSION: case DEF_EXTENSION:
LefSkipSection(f, sections[DEF_EXTENSION]); LefSkipSection(f, sections[DEF_EXTENSION]);
break; break;
case DEF_BLOCKAGES:
LefSkipSection(f, sections[DEF_BLOCKAGES]);
break;
case DEF_END: case DEF_END:
if (!LefParseEndStatement(token, "DESIGN")) if (!LefParseEndStatement(token, "DESIGN"))
{ {