Skip to content

Commit

Permalink
Merge pull request #1456 from KLayout/issue-1433
Browse files Browse the repository at this point in the history
Fixed #1433 (def syntax error not captured)
  • Loading branch information
klayoutmatthias authored Aug 8, 2023
2 parents ef49379 + 42baaef commit a29bef4
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/plugins/streamers/lefdef/db_plugin/dbDEFImporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@ DEFImporter::read_single_net (std::string &nondefaultrule, Layout &layout, db::C
sn = get_long ();
} else if (test ("SHAPE")) {
take ();
} else {
error (tl::to_string (tr ("Expected STYLE OR SHAPE specification following '+'")));
}

}
Expand Down
2 changes: 1 addition & 1 deletion testdata/lefdef/specialnets_geo/test.def
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SPECIALNETS 1 ;
+ POLYGON M1 ( 300 0 ) ( 300 50 ) ( 350 50 ) ( 400 100 ) ( 400 0 )
+ ROUTED + POLYGON M2 ( 300 150 ) ( 300 200 ) ( 350 200 ) ( 400 250 ) ( 400 150 )
+ RECT M1 ( 0 0 ) ( 100 200 )
+ ROUTED M1 30 + MASK 2 ( 0 0 15 ) ( 100 0 0 ) VIA1_dummy ( 100 100 10 )
+ ROUTED M1 30 ( 0 0 15 ) MASK 2 ( 100 0 0 ) VIA1_dummy ( 100 100 10 )
+ ROUTED M2 50 + SHAPE RING + STYLE 1 ( 0 100 ) ( 100 200 ) ( 200 200 )
+ ROUTED + MASK 2 + RECT M2 ( 250 0 ) ( 150 100 )
+ ROUTED + SHAPE RING + MASK 1 + VIA VIA1_dummy E ( 200 200 )
Expand Down
2 changes: 1 addition & 1 deletion testdata/lefdef/viasize/test.def
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SPECIALNETS 1 ;
+ POLYGON M1 ( 300 0 ) ( 300 50 ) ( 350 50 ) ( 400 100 ) ( 400 0 )
+ ROUTED + POLYGON M2 ( 300 150 ) ( 300 200 ) ( 350 200 ) ( 400 250 ) ( 400 150 )
+ RECT M1 ( 0 0 ) ( 100 200 )
+ ROUTED M1 30 + MASK 2 ( 0 0 15 ) ( 100 0 0 ) VIA1_small ( 100 100 10 )
+ ROUTED M1 30 ( 0 0 15 ) MASK 2 ( 100 0 0 ) VIA1_small ( 100 100 10 )
+ ROUTED M2 50 + SHAPE RING + STYLE 1 ( 0 100 ) ( 100 200 ) ( 200 200 )
+ ROUTED + MASK 2 + RECT M2 ( 250 0 ) ( 150 100 )
+ ROUTED + SHAPE RING + MASK 1 + VIA VIA1_large E ( 200 200 )
Expand Down
Binary file modified testdata/lefdef/viasize2/au.oas.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion testdata/lefdef/viasize2/test.def
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SPECIALNETS 1 ;
+ POLYGON M1 ( 300 0 ) ( 300 50 ) ( 350 50 ) ( 400 100 ) ( 400 0 )
+ ROUTED + POLYGON M2 ( 300 150 ) ( 300 200 ) ( 350 200 ) ( 400 250 ) ( 400 150 )
+ RECT M1 ( 0 0 ) ( 100 200 ) + VIA VIA1_bar E ( 100 200 )
+ ROUTED M1 30 + MASK 2 ( 0 0 15 ) ( 100 0 0 ) VIA1_small ( 100 100 10 )
+ ROUTED M1 30 ( 0 0 15 ) MASK 2 ( 100 0 0 ) VIA1_small ( 100 100 10 )
+ ROUTED M2 50 + SHAPE RING + STYLE 1 ( 0 100 ) ( 100 200 ) ( 200 200 )
+ ROUTED + MASK 2 + RECT M2 ( 250 0 ) ( 150 100 )
+ ROUTED + SHAPE RING + MASK 1 + VIA VIA1_large E ( 200 200 )
Expand Down
2 changes: 2 additions & 0 deletions testdata/lefdef/viasize2/test_fail.map
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ DIEAREA ALL 1 0
COMP ALL 2 0
M1 NET,SPNET 7 0
M2 NET,SPNET 9 0
M2 NET,SPNET:MASK:1 9 1
M2 NET,SPNET:MASK:2 9 2
VIA1 VIA 8 0
VIA1 VIA:SIZE:0.02x0.02 8 1
VIA1 VIA:SIZE:0.02x0.024 8 2
Expand Down
2 changes: 2 additions & 0 deletions testdata/lefdef/viasize2/test_ok.map
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ DIEAREA ALL 1 0
COMP ALL 2 0
M1 NET,SPNET 7 0
M2 NET,SPNET 9 0
M2 NET,SPNET:MASK:1 9 1
M2 NET,SPNET:MASK:2 9 2
VIA1 VIA 8 0
VIA1 VIA:SIZE:0.02x0.02 8 1
VIA1 VIA:SIZE:0.024x0.02 8 2
Expand Down

0 comments on commit a29bef4

Please sign in to comment.