From 5b7e336b334c035b710a4cb89ce6f6c5f8fc5586 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 5 Aug 2023 01:02:37 +0200 Subject: [PATCH] Added test for LEF/DEF map file NAME substitute --- .../lefdef/unit_tests/dbLEFDEFImportTests.cc | 4 ++++ testdata/lefdef/mapfile/test-nonames.map | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 testdata/lefdef/mapfile/test-nonames.map diff --git a/src/plugins/streamers/lefdef/unit_tests/dbLEFDEFImportTests.cc b/src/plugins/streamers/lefdef/unit_tests/dbLEFDEFImportTests.cc index 788770b82..176642309 100644 --- a/src/plugins/streamers/lefdef/unit_tests/dbLEFDEFImportTests.cc +++ b/src/plugins/streamers/lefdef/unit_tests/dbLEFDEFImportTests.cc @@ -540,6 +540,10 @@ TEST(111_mapfile) options.set_map_file ("test.map"); run_test (_this, "mapfile", "read:in.def", "au.oas.gz", options, false); + + options.set_map_file ("test-nonames.map"); + + run_test (_this, "mapfile", "read:in.def", "au.oas.gz", options, false); } TEST(112_via_properties) diff --git a/testdata/lefdef/mapfile/test-nonames.map b/testdata/lefdef/mapfile/test-nonames.map new file mode 100644 index 000000000..cfb23ee5a --- /dev/null +++ b/testdata/lefdef/mapfile/test-nonames.map @@ -0,0 +1,19 @@ +DIEAREA ALL 100 0 +M0PO LEFPIN,LEFOBS,PIN,NET,SPNET,VIA 10 0 +VIA0 LEFPIN,LEFOBS,VIA,PIN,NET,SPNET 11 0 +M1 LEFPIN 12 0 +M1 LEFOBS 12 1 +M1 PIN 12 2 +M1 NET 12 3 +M1 SPNET 12 4 +M1 VIA 12 5 +M1 FILLOPC 12 100 +M1 FILLOPC:MASK:1 12 101 +M1 FILLOPC:MASK:2 12 102 +M1 BLOCKAGEFILL 12 150 +M1 BLOCKAGE 12 151 +M1 FILL 12 152 +M1 PINNAME 12 10 +M1 LEFPINNAME 12 10 +VIA1 LEFPIN,LEFOBS,VIA,PIN,NET,SPNET 13 0 +M2 LEFPIN,LEFOBS,PIN,NET,SPNET,VIA 14 0