Fixed issue #1432 (strm2oas def ignores path segment)

This commit is contained in:
Matthias Koefferlein 2023-07-29 02:45:17 +02:00
parent abf2970438
commit 3b9f3eae20
6 changed files with 29 additions and 2 deletions

View File

@ -588,8 +588,8 @@ DEFImporter::read_single_net (std::string &nondefaultrule, Layout &layout, db::C
error (tl::to_string (tr ("RECT routing specification not followed by coordinate list")));
}
// breaks wiring
pts.clear ();
// breaks wiring? Issue #1432 says: no.
// pts.clear ();
// rect spec

View File

@ -986,3 +986,9 @@ TEST(207_joined_paths)
run_test (_this, "issue-1345", "lef:in.lef+def:in.def", "au-nojoin.oas.gz", default_options (), false);
}
// issue-1432
TEST(208_nets_and_rects)
{
run_test (_this, "issue-1432", "map:test.map+lef:test.lef+def:test.def", "au.oas", default_options (), false);
}

BIN
testdata/lefdef/issue-1432/au.oas vendored Normal file

Binary file not shown.

8
testdata/lefdef/issue-1432/test.def vendored Normal file
View File

@ -0,0 +1,8 @@
VERSION 5.8 ;
DESIGN test ;
UNITS DISTANCE MICRONS 1000 ;
DIEAREA ( -1 -1 ) ( 8 8 ) ;
NETS 1 ;
- dummy + ROUTED M1 ( 0 0 ) ( 5 0 ) VIRTUAL ( 7 1 ) RECT ( -3 0 -1 2 ) ( 7 7 ) ;
END NETS
END DESIGN

11
testdata/lefdef/issue-1432/test.lef vendored Normal file
View File

@ -0,0 +1,11 @@
UNITS
DATABASE MICRONS 1000 ;
END UNITS
MANUFACTURINGGRID 0.001 ;
LAYER M1
TYPE ROUTING ;
WIDTH 0.002 ;
END M1

2
testdata/lefdef/issue-1432/test.map vendored Normal file
View File

@ -0,0 +1,2 @@
DIEAREA ALL 108 0
M1 NET 31 0