Skip to content

Commit 9132b3c

Browse files
committed
latest merge or
Signed-off-by: dsengupta0628 <dsengupta@precisioninno.com>
2 parents a4c53e4 + 0e9fe29 commit 9132b3c

14 files changed

Lines changed: 87 additions & 19 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ configuration file.
160160
| <a name="GLOBAL_ROUTE_USE_CUGR"></a>GLOBAL_ROUTE_USE_CUGR| Passed as -use_cugr to global_route. Uses CUGR as the global routing solver instead of the default FastRoute solver. NOTE: CUGR is not ready for production.| 0|
161161
| <a name="GND_NETS_VOLTAGES"></a>GND_NETS_VOLTAGES| Used for IR Drop calculation.| |
162162
| <a name="GPL_KEEP_OVERFLOW"></a>GPL_KEEP_OVERFLOW| Passed as -keep_resize_below_overflow to global_placement. Only used when GPL_TIMING_DRIVEN is enabled.| |
163+
| <a name="GPL_RANDOM_SEED"></a>GPL_RANDOM_SEED| Specifies a random seed for global placement. Useful for perturbation studies.| |
163164
| <a name="GPL_ROUTABILITY_DRIVEN"></a>GPL_ROUTABILITY_DRIVEN| Specifies whether the placer should use routability driven placement.| 1|
164165
| <a name="GPL_TIMING_DRIVEN"></a>GPL_TIMING_DRIVEN| Specifies whether the placer should use timing driven placement.| 1|
165166
| <a name="GUI_TIMING"></a>GUI_TIMING| Load timing information when opening GUI. For large designs, this can be quite time consuming. Useful to disable when investigating non-timing aspects like floorplan, placement, routing, etc.| 1|
@@ -196,6 +197,7 @@ configuration file.
196197
| <a name="MIN_ROUTING_LAYER"></a>MIN_ROUTING_LAYER| The lowest metal layer name to be used in routing.| |
197198
| <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.| |
198199
| <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|
199201
| <a name="OR_K"></a>OR_K| Passed as -or_k to detailed routing.| |
200202
| <a name="OR_SEED"></a>OR_SEED| Passed as -or_seed to detailed routing.| |
201203
| <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.| |
@@ -472,6 +474,7 @@ configuration file.
472474
- [FLOORPLAN_DEF](#FLOORPLAN_DEF)
473475
- [GLOBAL_PLACEMENT_ARGS](#GLOBAL_PLACEMENT_ARGS)
474476
- [GPL_KEEP_OVERFLOW](#GPL_KEEP_OVERFLOW)
477+
- [GPL_RANDOM_SEED](#GPL_RANDOM_SEED)
475478
- [GPL_ROUTABILITY_DRIVEN](#GPL_ROUTABILITY_DRIVEN)
476479
- [GPL_TIMING_DRIVEN](#GPL_TIMING_DRIVEN)
477480
- [IO_PLACER_H](#IO_PLACER_H)
@@ -543,6 +546,7 @@ configuration file.
543546
- [MAX_REPAIR_TIMING_ITER](#MAX_REPAIR_TIMING_ITER)
544547
- [MAX_ROUTING_LAYER](#MAX_ROUTING_LAYER)
545548
- [MIN_ROUTING_LAYER](#MIN_ROUTING_LAYER)
549+
- [OPT_POST_GRT_WNS](#OPT_POST_GRT_WNS)
546550
- [POST_GLOBAL_ROUTE_TCL](#POST_GLOBAL_ROUTE_TCL)
547551
- [PRE_GLOBAL_ROUTE_TCL](#PRE_GLOBAL_ROUTE_TCL)
548552
- [REPORT_CLOCK_SKEW](#REPORT_CLOCK_SKEW)

‎flow/designs/asap7/swerv_wrapper/config.mk‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,4 @@ export ROUTING_LAYER_ADJUSTMENT = 0.2
6161
export SWAP_ARITH_OPERATORS = 1
6262
export OPENROAD_HIERARCHICAL = 1
6363

64+
export GPL_RANDOM_SEED = 2

‎flow/designs/nangate45/ariane133/config.mk‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ export RTLMP_MAX_MACRO = 30
2727
export RTLMP_MIN_MACRO = 10
2828
export RTLMP_MAX_INST = 80000
2929
export RTLMP_MIN_INST = 8000
30+
31+
export GPL_RANDOM_SEED = 3

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"synth__canonical_netlist__hash": {
3-
"value": "7af2e5d516717525c8e4b86fbe5c8c0fc7e3e6b0",
3+
"value": "608c7e7060b1b403c0e893101b0bd83a23b7f306",
44
"compare": "==",
55
"level": "warning"
66
},
77
"synth__netlist__hash": {
8-
"value": "0925e491023b71ddf98d5a9d92664c9607d38b85",
8+
"value": "624023bd257848127135daf0c0d20528d8fb9315",
99
"compare": "==",
1010
"level": "warning"
1111
},
@@ -38,11 +38,11 @@
3838
"compare": "<="
3939
},
4040
"cts__timing__setup__ws": {
41-
"value": -0.579,
41+
"value": -0.574,
4242
"compare": ">="
4343
},
4444
"cts__timing__setup__tns": {
45-
"value": -929.0,
45+
"value": -743.0,
4646
"compare": ">="
4747
},
4848
"cts__timing__hold__ws": {
@@ -62,7 +62,7 @@
6262
"compare": ">="
6363
},
6464
"globalroute__timing__setup__tns": {
65-
"value": -755.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": -801.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/platforms/ihp-sg13g2/config.mk‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export LIB_FILES ?= $(TYP_LIB_FILES)
3131
export GDS_FILES ?= $(PLATFORM_DIR)/gds/sg13g2_stdcell.gds \
3232
$(ADDITIONAL_GDS)
3333

34+
export PLATFORM_TCL ?= $(PLATFORM_DIR)/suppress_message.tcl
35+
3436
# Dont use cells to ease congestion
3537
# Specify at least one filler cell if none
3638

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Disable message
2+
# LEF58_ENCLOSURE with no CUTCLASS is not supported. Skipping for layer X
3+
suppress_message DRT 349

‎flow/scripts/global_place.tcl‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ set global_placement_args {}
2626
# Parameters for routability mode in global placement
2727
append_env_var global_placement_args GPL_ROUTABILITY_DRIVEN -routability_driven 0
2828

29+
append_env_var global_placement_args GPL_RANDOM_SEED -random_seed 1
30+
2931
# Parameters for timing driven mode in global placement
3032
if { $::env(GPL_TIMING_DRIVEN) } {
3133
lappend global_placement_args {-timing_driven}

‎flow/scripts/global_place_skip_io.tcl‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@ if { [env_var_exists_and_non_empty FLOORPLAN_DEF] } {
88
} elseif { [all_pins_placed] } {
99
puts "All pins are placed. Skipping global placement without IOs"
1010
} else {
11+
set global_placement_args {}
12+
append_env_var global_placement_args GPL_RANDOM_SEED -random_seed 1
13+
1114
log_cmd global_placement -skip_io -density [place_density_with_lb_addon] \
1215
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
1316
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
14-
{*}[env_var_or_empty GLOBAL_PLACEMENT_ARGS]
17+
{*}[env_var_or_empty GLOBAL_PLACEMENT_ARGS] \
18+
{*}$global_placement_args
1519
}
1620

1721
source_step_tcl POST GLOBAL_PLACE_SKIP_IO

‎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) &&

0 commit comments

Comments
 (0)