Skip to content

Commit bde10c7

Browse files
authored
Merge pull request #4343 from The-OpenROAD-Project-staging/secure-fix-wns-opt
Fix OPT_POST_GRT_WNS and disable for some PDKs
2 parents a15fd19 + 4328a02 commit bde10c7

7 files changed

Lines changed: 24 additions & 21 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"compare": ">="
5555
},
5656
"globalroute__antenna_diodes_count": {
57-
"value": 1747,
57+
"value": 1692,
5858
"compare": "<="
5959
},
6060
"globalroute__timing__setup__ws": {
@@ -82,27 +82,27 @@
8282
"compare": "<="
8383
},
8484
"detailedroute__antenna__violating__nets": {
85-
"value": 0,
85+
"value": 1,
8686
"compare": "<="
8787
},
8888
"detailedroute__antenna_diodes_count": {
89-
"value": 1297,
89+
"value": 1295,
9090
"compare": "<="
9191
},
9292
"finish__timing__setup__ws": {
9393
"value": -2.42,
9494
"compare": ">="
9595
},
9696
"finish__timing__setup__tns": {
97-
"value": -312.0,
97+
"value": -307.0,
9898
"compare": ">="
9999
},
100100
"finish__timing__hold__ws": {
101101
"value": -0.954,
102102
"compare": ">="
103103
},
104104
"finish__timing__hold__tns": {
105-
"value": -5.02,
105+
"value": -4.65,
106106
"compare": ">="
107107
},
108108
"finish__design__instance__area": {

‎flow/platforms/gf180/config.mk‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ export MIN_ROUTING_LAYER ?= Metal2
9797
export MAX_ROUTING_LAYER ?= Metal5
9898
export DISABLE_VIA_GEN ?= 1
9999

100+
export OPT_POST_GRT_WNS ?= 0
101+
100102
# Define fastRoute tcl
101103
export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl
102104

‎flow/platforms/ihp-sg13g2/config.mk‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ export MAX_ROUTING_LAYER ?= Metal5
140140
#export VIA_IN_PIN_MAX_LAYER ?= Metal1
141141
#export DISABLE_VIA_GEN ?= 1
142142

143+
export OPT_POST_GRT_WNS ?= 0
144+
143145
# Define fastRoute tcl
144146
export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl
145147

‎flow/platforms/nangate45/config.mk‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export MIN_ROUTING_LAYER = metal2
7575
export MIN_CLK_ROUTING_LAYER = metal4
7676
export MAX_ROUTING_LAYER = metal10
7777

78+
export OPT_POST_GRT_WNS ?= 0
79+
7880
# Define fastRoute tcl
7981
export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl
8082

‎flow/platforms/sky130hd/config.mk‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ export MIN_ROUTING_LAYER ?= met1
118118
export MIN_CLK_ROUTING_LAYER ?= met3
119119
export MAX_ROUTING_LAYER ?= met5
120120

121+
export OPT_POST_GRT_WNS ?= 0
122+
121123
#
122124
# Define fastRoute tcl
123125
export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl

‎flow/platforms/sky130hs/config.mk‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ export MIN_ROUTING_LAYER = met1
8080
export MIN_CLK_ROUTING_LAYER = met3
8181
export MAX_ROUTING_LAYER = met5
8282

83+
export OPT_POST_GRT_WNS ?= 0
84+
8385
#
8486
# Define fastRoute tcl
8587
export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl

‎flow/scripts/global_route.tcl‎

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,16 @@ 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
90+
log_cmd global_route -start_incremental
91+
log_cmd detailed_placement {*}$dpl_args
92+
log_cmd check_placement -verbose
93+
# Route only the modified net by DPL
94+
log_cmd global_route -end_incremental {*}$res_aware \
95+
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing.rpt
9796

97+
log_cmd estimate_parasitics -global_routing
98+
99+
if { $::env(OPT_POST_GRT_WNS) } {
98100
set repair_timing_args \
99101
[list -setup -sequence "vt_swap reroute" -skip_last_gasp -repair_tns 0 -verbose]
100102
if { [env_var_exists_and_non_empty MATCH_CELL_FOOTPRINT] } {
@@ -109,15 +111,6 @@ proc global_route_helper { } {
109111
report_metrics 5 "global route post repair timing_opt_wns"
110112
}
111113
}
112-
113-
# Running DPL to fix overlapped instances
114-
# Run to get modified net by DPL
115-
log_cmd global_route -start_incremental
116-
log_cmd detailed_placement {*}$dpl_args
117-
log_cmd check_placement -verbose
118-
# Route only the modified net by DPL
119-
log_cmd global_route -end_incremental {*}$res_aware \
120-
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing.rpt
121114
}
122115

123116
if { !$::env(OPT_POST_GRT_WNS) } {

0 commit comments

Comments
 (0)