Repository navigation
drt: keep instance pin access within the top routing layer #11938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
maliberty
merged 1 commit into
The-OpenROAD-Project:master
from
The-OpenROAD-Project-staging:TR-pa-top-layer
Oct 31, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| VERSION 5.8 ; | ||
| DIVIDERCHAR "/" ; | ||
| BUSBITCHARS "[]" ; | ||
| DESIGN top ; | ||
| UNITS DISTANCE MICRONS 1000 ; | ||
| DIEAREA ( 0 0 ) ( 40000 40000 ) ; | ||
| ROW ROW_0 unithd 5060 5440 N DO 65 BY 1 STEP 460 0 ; | ||
| ROW ROW_1 unithd 5060 8160 FS DO 65 BY 1 STEP 460 0 ; | ||
| ROW ROW_2 unithd 5060 10880 N DO 65 BY 1 STEP 460 0 ; | ||
| ROW ROW_3 unithd 5060 13600 FS DO 65 BY 1 STEP 460 0 ; | ||
| ROW ROW_4 unithd 5060 16320 N DO 65 BY 1 STEP 460 0 ; | ||
| ROW ROW_5 unithd 5060 19040 FS DO 65 BY 1 STEP 460 0 ; | ||
| ROW ROW_6 unithd 5060 21760 N DO 65 BY 1 STEP 460 0 ; | ||
| ROW ROW_7 unithd 5060 24480 FS DO 65 BY 1 STEP 460 0 ; | ||
| ROW ROW_8 unithd 5060 27200 N DO 65 BY 1 STEP 460 0 ; | ||
| ROW ROW_9 unithd 5060 29920 FS DO 65 BY 1 STEP 460 0 ; | ||
| TRACKS X 230 DO 87 STEP 460 LAYER li1 ; | ||
| TRACKS Y 170 DO 117 STEP 340 LAYER li1 ; | ||
| TRACKS X 170 DO 117 STEP 340 LAYER met1 ; | ||
| TRACKS Y 170 DO 117 STEP 340 LAYER met1 ; | ||
| TRACKS X 230 DO 87 STEP 460 LAYER met2 ; | ||
| TRACKS Y 230 DO 87 STEP 460 LAYER met2 ; | ||
| TRACKS X 340 DO 59 STEP 680 LAYER met3 ; | ||
| TRACKS Y 340 DO 59 STEP 680 LAYER met3 ; | ||
| TRACKS X 460 DO 43 STEP 920 LAYER met4 ; | ||
| TRACKS Y 460 DO 43 STEP 920 LAYER met4 ; | ||
| TRACKS X 1700 DO 12 STEP 3400 LAYER met5 ; | ||
| TRACKS Y 1700 DO 12 STEP 3400 LAYER met5 ; | ||
| GCELLGRID X 0 DO 5 STEP 6900 ; | ||
| GCELLGRID Y 0 DO 5 STEP 6900 ; | ||
| COMPONENTS 1 ; | ||
| - u1 sky130_fd_sc_hd__probec_p_8 + PLACED ( 15180 19040 ) N ; | ||
| END COMPONENTS | ||
| PINS 2 ; | ||
| - in + NET in + DIRECTION INPUT + USE SIGNAL | ||
| + PORT | ||
| + LAYER met2 ( -70 -242 ) ( 70 243 ) | ||
| + PLACED ( 20470 242 ) N ; | ||
| - out + NET out + DIRECTION OUTPUT + USE SIGNAL | ||
| + PORT | ||
| + LAYER met2 ( -70 -242 ) ( 70 243 ) | ||
| + PLACED ( 19550 242 ) N ; | ||
| END PINS | ||
| NETS 2 ; | ||
| - in ( PIN in ) ( u1 A ) + USE SIGNAL | ||
| + ROUTED met2 ( 20470 340 0 ) ( * 1020 ) | ||
| NEW met2 ( 20010 1020 ) ( 20470 * ) | ||
| NEW met2 ( 20010 1020 ) ( * 19550 ) | ||
| NEW met1 ( 16330 19550 ) ( 20010 * ) | ||
| NEW met1 ( 16330 19550 ) ( * 20230 ) | ||
| NEW met1 ( 20010 19550 ) M1M2_PR | ||
| NEW li1 ( 16330 20230 ) L1M1_PR_MR ; | ||
| - out ( PIN out ) ( u1 X ) + USE SIGNAL | ||
| + ROUTED met2 ( 19550 340 0 ) ( * 6460 ) | ||
| NEW met3 ( 17020 6460 ) ( 19550 * ) | ||
| NEW met4 ( 17020 6460 ) ( * 20400 0 ) | ||
| NEW met2 ( 19550 6460 ) M2M3_PR | ||
| NEW met3 ( 17020 6460 ) M3M4_PR ; | ||
| END NETS | ||
| END DESIGN |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| [INFO ODB-0227] LEF file: sky130hd/sky130hd.tlef, created 13 layers, 25 vias | ||
| [INFO ODB-0227] LEF file: sky130hd/sky130_fd_sc_hd_merged.lef, created 437 library cells | ||
| [WARNING IFP-0028] Core area lower left (5.000, 5.000) snapped to (5.060, 5.440). | ||
| [INFO IFP-0001] Added 10 rows of 65 site unithd. | ||
| [INFO IFP-0100] Die BBox: ( 0.000 0.000 ) ( 40.000 40.000 ) um | ||
| [INFO IFP-0101] Core BBox: ( 5.060 5.440 ) ( 34.960 32.640 ) um | ||
| [INFO IFP-0102] Core area: 813.280 um^2 | ||
| [INFO IFP-0103] Total instances area: 15.014 um^2 | ||
| [INFO IFP-0104] Effective utilization: 0.018 | ||
| [INFO IFP-0105] Number of instances: 1 | ||
| Found 0 macro blocks. | ||
| Using 2 tracks default min distance between IO pins. | ||
| [INFO PPL-0001] Number of available slots 136 | ||
| [INFO PPL-0002] Number of I/O 2 | ||
| [INFO PPL-0003] Number of I/O w/sink 2 | ||
| [INFO PPL-0004] Number of I/O w/o sink 0 | ||
| [INFO PPL-0005] Slots per section 200 | ||
| [INFO PPL-0008] Successfully assigned pins to sections. | ||
| [INFO PPL-0012] I/O nets HPWL: 40.92 um. | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer mcon | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer mcon | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer via | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer via | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer via2 | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer via2 | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer via3 | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer via3 | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer via4 | ||
| [WARNING DRT-0349] LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer via4 | ||
| [INFO DRT-0167] List of default vias: | ||
| Layer via | ||
| default via: M1M2_PR | ||
| Layer via2 | ||
| default via: M2M3_PR | ||
| Layer via3 | ||
| default via: M3M4_PR | ||
| Layer via4 | ||
| default via: M4M5_PR | ||
| [INFO DRT-0168] Init region query. | ||
| [INFO DRT-0033] FR_MASTERSLICE shape region query size = 0. | ||
| [INFO DRT-0033] FR_VIA shape region query size = 0. | ||
| [INFO DRT-0033] li1 shape region query size = 36. | ||
| [INFO DRT-0033] mcon shape region query size = 26. | ||
| [INFO DRT-0033] met1 shape region query size = 11. | ||
| [INFO DRT-0033] via shape region query size = 6. | ||
| [INFO DRT-0033] met2 shape region query size = 5. | ||
| [INFO DRT-0033] via2 shape region query size = 6. | ||
| [INFO DRT-0033] met3 shape region query size = 4. | ||
| [INFO DRT-0033] via3 shape region query size = 8. | ||
| [INFO DRT-0033] met4 shape region query size = 4. | ||
| [INFO DRT-0033] via4 shape region query size = 4. | ||
| [INFO DRT-0033] met5 shape region query size = 5. | ||
| [INFO DRT-0178] Init guide query. | ||
| [INFO DRT-0036] FR_MASTERSLICE guide region query size = 0. | ||
| [INFO DRT-0036] FR_VIA guide region query size = 0. | ||
| [INFO DRT-0036] li1 guide region query size = 1. | ||
| [INFO DRT-0036] mcon guide region query size = 0. | ||
| [INFO DRT-0036] met1 guide region query size = 1. | ||
| [INFO DRT-0036] via guide region query size = 0. | ||
| [INFO DRT-0036] met2 guide region query size = 2. | ||
| [INFO DRT-0036] via2 guide region query size = 0. | ||
| [INFO DRT-0036] met3 guide region query size = 1. | ||
| [INFO DRT-0036] via3 guide region query size = 0. | ||
| [INFO DRT-0036] met4 guide region query size = 1. | ||
| [INFO DRT-0036] via4 guide region query size = 0. | ||
| [INFO DRT-0036] met5 guide region query size = 0. | ||
| [INFO DRT-0179] Init gr pin query. | ||
| No differences found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Regression test for https://github.com/The-OpenROAD-Project/OpenROAD/issues/11812 | ||
| # | ||
| # The X pin of sky130_fd_sc_hd__probec_p_8 has shapes on li1 through met5. | ||
| # With the top routing layer set to met4, pin access used to keep access | ||
| # points on met5. The detailed-route grid graph stops at the top routing | ||
| # layer, so those access points had no maze index and detailed_route | ||
| # crashed in FlexDRWorker::routeNet after "initMazeIdx_ap no idx". | ||
| source "helpers.tcl" | ||
| read_lef "sky130hd/sky130hd.tlef" | ||
| read_lef "sky130hd/sky130_fd_sc_hd_merged.lef" | ||
| read_liberty "sky130hd/sky130_fd_sc_hd__tt_025C_1v80.lib" | ||
| read_verilog "pa_above_top_layer.v" | ||
| link_design top | ||
|
|
||
| initialize_floorplan -die_area {0 0 40 40} \ | ||
| -core_area {5 5 35 35} \ | ||
| -site unithd | ||
| make_tracks | ||
| place_pins -hor_layers met3 -ver_layers met2 | ||
|
|
||
| # Row 5, site 22: a legal location, so no detailed placement is needed | ||
| set inst [[ord::get_db_block] findInst u1] | ||
| $inst setLocation [ord::microns_to_dbu 15.18] [ord::microns_to_dbu 19.04] | ||
| $inst setPlacementStatus PLACED | ||
|
|
||
| set_routing_layers -signal met1-met4 | ||
| global_route | ||
| detailed_route -verbose 0 | ||
|
|
||
| set def_file [make_result_file pa_above_top_layer.def] | ||
| write_def $def_file | ||
| diff_files pa_above_top_layer.defok $def_file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| module top (in, out); | ||
| input in; | ||
| output out; | ||
| sky130_fd_sc_hd__probec_p_8 u1 (.A(in), .X(out)); | ||
| endmodule |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.