Support for LEF via definition properties (syntax wise, not semantics wise)

This commit is contained in:
Matthias Koefferlein 2020-06-04 17:55:06 +02:00
parent 4aa1364e4b
commit 233574598b
4 changed files with 47 additions and 1 deletions

View File

@ -361,6 +361,13 @@ LEFImporter::read_geometries (db::Layout &layout, db::Cell &cell, LayerPurpose p
expect (";");
} else if (test ("PROPERTY")) {
// skip properties
while (! at_end () && ! test (";")) {
take ();
}
} else {
// stop at unknown token
break;
@ -405,7 +412,7 @@ LEFImporter::read_nondefaultrule (db::Layout & /*layout*/)
}
} else {
while (! test (";")) {
while (! at_end () && ! test (";")) {
take ();
}
}

View File

@ -389,3 +389,9 @@ TEST(111_mapfile)
run_test (_this, "mapfile", "read:in.def", "au.oas.gz", options, false);
}
TEST(112_via_properties)
{
run_test (_this, "via_properties", "lef:in.lef", "au.oas.gz", default_options (), false);
}

BIN
testdata/lefdef/via_properties/au.oas.gz vendored Normal file

Binary file not shown.

33
testdata/lefdef/via_properties/in.lef vendored Normal file
View File

@ -0,0 +1,33 @@
VERSION 5.6 ;
UNITS
DATABASE MICRONS 2000 ;
END UNITS
PROPERTYDEFINITIONS
VIA OR_DEFAULT STRING ;
END PROPERTYDEFINITIONS
LAYER metal1
TYPE ROUTING ;
END metal1
LAYER via1
TYPE CUT ;
END via1
LAYER metal2
TYPE ROUTING ;
END metal2
VIA via1_4 DEFAULT
LAYER via1 ;
RECT -0.035 -0.035 0.035 0.035 ;
LAYER metal1 ;
RECT -0.035 -0.07 0.035 0.07 ;
LAYER metal2 ;
RECT -0.035 -0.07 0.035 0.07 ;
PROPERTY OR_DEFAULT Y ;
END via1_4
END LIBRARY