Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions flow/designs/sky130hd/microwatt/rules-base.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"compare": ">="
},
"globalroute__antenna_diodes_count": {
"value": 1747,
"value": 1692,
"compare": "<="
},
"globalroute__timing__setup__ws": {
Expand Down Expand Up @@ -82,27 +82,27 @@
"compare": "<="
},
"detailedroute__antenna__violating__nets": {
"value": 0,
"value": 1,
"compare": "<="
},
"detailedroute__antenna_diodes_count": {
"value": 1297,
"value": 1295,
"compare": "<="
},
"finish__timing__setup__ws": {
"value": -2.42,
"compare": ">="
},
"finish__timing__setup__tns": {
"value": -312.0,
"value": -307.0,
"compare": ">="
},
"finish__timing__hold__ws": {
"value": -0.954,
"compare": ">="
},
"finish__timing__hold__tns": {
"value": -5.02,
"value": -4.65,
"compare": ">="
},
"finish__design__instance__area": {
Expand Down
2 changes: 2 additions & 0 deletions flow/platforms/gf180/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions flow/platforms/ihp-sg13g2/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions flow/platforms/nangate45/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions flow/platforms/sky130hd/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions flow/platforms/sky130hs/config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
25 changes: 9 additions & 16 deletions flow/scripts/global_route.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -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] } {
Expand All @@ -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
Comment thread
maliberty marked this conversation as resolved.
Resolved
}

if { !$::env(OPT_POST_GRT_WNS) } {
Expand Down