Merge pull request #1435 from KLayout/issue-1432

Issue 1432
This commit is contained in:
Matthias Köfferlein 2023-08-01 20:43:31 +02:00 committed by GitHub
commit ae3c8c27f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 3 deletions

View File

@ -588,9 +588,6 @@ 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 ();
// rect spec
double x1 = get_double ();

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