diff --git a/flow/designs/sky130hd/microwatt/rules-base.json b/flow/designs/sky130hd/microwatt/rules-base.json index e4fd15894a..74034aa4b0 100644 --- a/flow/designs/sky130hd/microwatt/rules-base.json +++ b/flow/designs/sky130hd/microwatt/rules-base.json @@ -54,7 +54,7 @@ "compare": ">=" }, "globalroute__antenna_diodes_count": { - "value": 1747, + "value": 1692, "compare": "<=" }, "globalroute__timing__setup__ws": { @@ -82,11 +82,11 @@ "compare": "<=" }, "detailedroute__antenna__violating__nets": { - "value": 0, + "value": 1, "compare": "<=" }, "detailedroute__antenna_diodes_count": { - "value": 1297, + "value": 1295, "compare": "<=" }, "finish__timing__setup__ws": { @@ -94,7 +94,7 @@ "compare": ">=" }, "finish__timing__setup__tns": { - "value": -312.0, + "value": -307.0, "compare": ">=" }, "finish__timing__hold__ws": { @@ -102,7 +102,7 @@ "compare": ">=" }, "finish__timing__hold__tns": { - "value": -5.02, + "value": -4.65, "compare": ">=" }, "finish__design__instance__area": { diff --git a/flow/platforms/gf180/config.mk b/flow/platforms/gf180/config.mk index a8af3d4184..3fa975a0cf 100644 --- a/flow/platforms/gf180/config.mk +++ b/flow/platforms/gf180/config.mk @@ -97,6 +97,8 @@ export MIN_ROUTING_LAYER ?= Metal2 export MAX_ROUTING_LAYER ?= Metal5 export DISABLE_VIA_GEN ?= 1 +export OPT_POST_GRT_WNS ?= 0 + # Define fastRoute tcl export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl diff --git a/flow/platforms/ihp-sg13g2/config.mk b/flow/platforms/ihp-sg13g2/config.mk index f8cfcc79aa..1cbb86c560 100644 --- a/flow/platforms/ihp-sg13g2/config.mk +++ b/flow/platforms/ihp-sg13g2/config.mk @@ -140,6 +140,8 @@ export MAX_ROUTING_LAYER ?= Metal5 #export VIA_IN_PIN_MAX_LAYER ?= Metal1 #export DISABLE_VIA_GEN ?= 1 +export OPT_POST_GRT_WNS ?= 0 + # Define fastRoute tcl export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl diff --git a/flow/platforms/nangate45/config.mk b/flow/platforms/nangate45/config.mk index d8b60131f4..0a69b6642e 100644 --- a/flow/platforms/nangate45/config.mk +++ b/flow/platforms/nangate45/config.mk @@ -75,6 +75,8 @@ export MIN_ROUTING_LAYER = metal2 export MIN_CLK_ROUTING_LAYER = metal4 export MAX_ROUTING_LAYER = metal10 +export OPT_POST_GRT_WNS ?= 0 + # Define fastRoute tcl export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl diff --git a/flow/platforms/sky130hd/config.mk b/flow/platforms/sky130hd/config.mk index 1be5dc4dbf..5a50fa7411 100644 --- a/flow/platforms/sky130hd/config.mk +++ b/flow/platforms/sky130hd/config.mk @@ -118,6 +118,8 @@ export MIN_ROUTING_LAYER ?= met1 export MIN_CLK_ROUTING_LAYER ?= met3 export MAX_ROUTING_LAYER ?= met5 +export OPT_POST_GRT_WNS ?= 0 + # # Define fastRoute tcl export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl diff --git a/flow/platforms/sky130hs/config.mk b/flow/platforms/sky130hs/config.mk index 29fe00d6d7..7c96533b31 100644 --- a/flow/platforms/sky130hs/config.mk +++ b/flow/platforms/sky130hs/config.mk @@ -80,6 +80,8 @@ export MIN_ROUTING_LAYER = met1 export MIN_CLK_ROUTING_LAYER = met3 export MAX_ROUTING_LAYER = met5 +export OPT_POST_GRT_WNS ?= 0 + # # Define fastRoute tcl export FASTROUTE_TCL ?= $(PLATFORM_DIR)/fastroute.tcl diff --git a/flow/scripts/global_route.tcl b/flow/scripts/global_route.tcl index 9f427cf1ef..30ccf82bed 100644 --- a/flow/scripts/global_route.tcl +++ b/flow/scripts/global_route.tcl @@ -87,14 +87,16 @@ proc global_route_helper { } { report_metrics 5 "global route post repair timing" } - if { $::env(OPT_POST_GRT_WNS) } { - log_cmd global_route -start_incremental - log_cmd detailed_placement {*}$dpl_args - log_cmd check_placement -verbose - # Route only the modified net by DPL - log_cmd global_route -end_incremental {*}$res_aware \ - -congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing_opt_wns.rpt + log_cmd global_route -start_incremental + log_cmd detailed_placement {*}$dpl_args + log_cmd check_placement -verbose + # Route only the modified net by DPL + log_cmd global_route -end_incremental {*}$res_aware \ + -congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing.rpt + log_cmd estimate_parasitics -global_routing + + if { $::env(OPT_POST_GRT_WNS) } { set repair_timing_args \ [list -setup -sequence "vt_swap reroute" -skip_last_gasp -repair_tns 0 -verbose] if { [env_var_exists_and_non_empty MATCH_CELL_FOOTPRINT] } { @@ -109,15 +111,6 @@ proc global_route_helper { } { report_metrics 5 "global route post repair timing_opt_wns" } } - - # Running DPL to fix overlapped instances - # Run to get modified net by DPL - log_cmd global_route -start_incremental - log_cmd detailed_placement {*}$dpl_args - log_cmd check_placement -verbose - # Route only the modified net by DPL - log_cmd global_route -end_incremental {*}$res_aware \ - -congestion_report_file $::env(REPORTS_DIR)/congestion_post_repair_timing.rpt } if { !$::env(OPT_POST_GRT_WNS) } {