Skip to content

Commit 490c569

Browse files
authored
Merge pull request #4320 from The-OpenROAD-Project-staging/secure-opt-grt-wns
validate post GRT WNS opto
2 parents fb65d5b + a931548 commit 490c569

7 files changed

Lines changed: 53 additions & 13 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ configuration file.
197197
| <a name="MIN_ROUTING_LAYER"></a>MIN_ROUTING_LAYER| The lowest metal layer name to be used in routing.| |
198198
| <a name="NUM_CORES"></a>NUM_CORES| Passed to `openroad -threads $(NUM_CORES)`, defaults to numbers of cores in system as determined by system specific code in Makefile, `nproc` is tried first. OpenROAD does not limit itself to this number of cores across OpenROAD running instances, which can lead to overprovisioning in contexts such as bazel-orfs where there could be many routing, or place jobs running at the same time.| |
199199
| <a name="OPENROAD_HIERARCHICAL"></a>OPENROAD_HIERARCHICAL| Feature toggle to enable to run OpenROAD in hierarchical mode, otherwise considered flat. Will eventually be the default and this option will be retired.| 0|
200+
| <a name="OPT_POST_GRT_WNS"></a>OPT_POST_GRT_WNS| Optimize WNS after global routing by additional repair_timing that uses VT swap and wire rerouting only to minimize placement and routing disturbance| 1|
200201
| <a name="OR_K"></a>OR_K| Passed as -or_k to detailed routing.| |
201202
| <a name="OR_SEED"></a>OR_SEED| Passed as -or_seed to detailed routing.| |
202203
| <a name="PDN_TCL"></a>PDN_TCL| File path which has a set of power grid policies used by pdn to be applied to the design, such as layers to use, stripe width and spacing to generate the actual metal straps.| |
@@ -545,6 +546,7 @@ configuration file.
545546
- [MAX_REPAIR_TIMING_ITER](#MAX_REPAIR_TIMING_ITER)
546547
- [MAX_ROUTING_LAYER](#MAX_ROUTING_LAYER)
547548
- [MIN_ROUTING_LAYER](#MIN_ROUTING_LAYER)
549+
- [OPT_POST_GRT_WNS](#OPT_POST_GRT_WNS)
548550
- [POST_GLOBAL_ROUTE_TCL](#POST_GLOBAL_ROUTE_TCL)
549551
- [PRE_GLOBAL_ROUTE_TCL](#PRE_GLOBAL_ROUTE_TCL)
550552
- [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW)

‎flow/designs/nangate45/ariane133/rules-base.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"compare": ">="
6363
},
6464
"globalroute__timing__setup__tns": {
65-
"value": -880.0,
65+
"value": -994.0,
6666
"compare": ">="
6767
},
6868
"globalroute__timing__hold__ws": {
@@ -94,7 +94,7 @@
9494
"compare": ">="
9595
},
9696
"finish__timing__setup__tns": {
97-
"value": -964.0,
97+
"value": -1010.0,
9898
"compare": ">="
9999
},
100100
"finish__timing__hold__ws": {

‎flow/designs/sky130hd/microwatt/rules-base.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"compare": ">="
5555
},
5656
"globalroute__antenna_diodes_count": {
57-
"value": 1909,
57+
"value": 1931,
5858
"compare": "<="
5959
},
6060
"globalroute__timing__setup__ws": {
@@ -82,11 +82,11 @@
8282
"compare": "<="
8383
},
8484
"detailedroute__antenna__violating__nets": {
85-
"value": 0,
85+
"value": 1,
8686
"compare": "<="
8787
},
8888
"detailedroute__antenna_diodes_count": {
89-
"value": 1267,
89+
"value": 1274,
9090
"compare": "<="
9191
},
9292
"finish__timing__setup__ws": {

‎flow/scripts/global_route.tcl‎

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,46 @@ proc global_route_helper { } {
8787
report_metrics 5 "global route post repair timing"
8888
}
8989

90+
if { $::env(OPT_POST_GRT_WNS) } {
91+
log_cmd global_route -start_incremental
92+
log_cmd detailed_placement {*}$dpl_args
93+
log_cmd check_placement -verbose
94+
# Route only the modified net by DPL
95+
log_cmd global_route -end_incremental {*}$res_aware \
96+
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing_opt_wns.rpt
97+
98+
set repair_timing_args \
99+
[list -setup -sequence "vt_swap reroute" -skip_last_gasp -repair_tns 0 -verbose]
100+
if { [env_var_exists_and_non_empty MATCH_CELL_FOOTPRINT] } {
101+
lappend repair_timing_args -match_cell_footprint
102+
}
103+
if { $::env(SETUP_SLACK_MARGIN) != 0 } {
104+
lappend repair_timing_args -setup_margin $::env(SETUP_SLACK_MARGIN)
105+
}
106+
log_cmd repair_timing {*}$repair_timing_args
107+
108+
if { $::env(DETAILED_METRICS) } {
109+
report_metrics 5 "global route post repair timing_opt_wns"
110+
}
111+
}
112+
90113
# Running DPL to fix overlapped instances
91114
# Run to get modified net by DPL
92115
log_cmd global_route -start_incremental
93116
log_cmd detailed_placement {*}$dpl_args
94-
check_placement -verbose
117+
log_cmd check_placement -verbose
95118
# Route only the modified net by DPL
96119
log_cmd global_route -end_incremental {*}$res_aware \
97120
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing.rpt
98121
}
99122

100-
101-
log_cmd global_route -start_incremental
102-
recover_power_helper
103-
# Route the modified nets by rsz journal restore
104-
log_cmd global_route -end_incremental {*}$res_aware \
105-
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_recover_power.rpt
123+
if { !$::env(OPT_POST_GRT_WNS) } {
124+
log_cmd global_route -start_incremental
125+
recover_power_helper
126+
# Route the modified nets by rsz journal restore
127+
log_cmd global_route -end_incremental {*}$res_aware \
128+
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_recover_power.rpt
129+
}
106130

107131
if {
108132
!$::env(SKIP_ANTENNA_REPAIR) &&

‎flow/scripts/variables.json‎

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎flow/scripts/variables.yaml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,3 +1622,10 @@ CDL_FILE:
16221622
for generating Circuit Description Language output.
16231623
stages:
16241624
- final
1625+
OPT_POST_GRT_WNS:
1626+
default: 1
1627+
description: >
1628+
Optimize WNS after global routing by additional repair_timing that uses
1629+
VT swap and wire rerouting only to minimize placement and routing disturbance
1630+
stages:
1631+
- grt

‎tools/OpenROAD‎

Submodule OpenROAD updated 46 files

0 commit comments

Comments
 (0)