Skip to content

Commit fb65d5b

Browse files
authored
Merge pull request #4321 from The-OpenROAD-Project-staging/random-seed
Random seed
2 parents adeb389 + a0c3048 commit fb65d5b

9 files changed

Lines changed: 30 additions & 8 deletions

File tree

‎docs/user/FlowVariables.md‎

Lines changed: 2 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|
@@ -472,6 +473,7 @@ configuration file.
472473
- [FLOORPLAN_DEF](#FLOORPLAN_DEF)
473474
- [GLOBAL_PLACEMENT_ARGS](#GLOBAL_PLACEMENT_ARGS)
474475
- [GPL_KEEP_OVERFLOW](#GPL_KEEP_OVERFLOW)
476+
- [GPL_RANDOM_SEED](#GPL_RANDOM_SEED)
475477
- [GPL_ROUTABILITY_DRIVEN](#GPL_ROUTABILITY_DRIVEN)
476478
- [GPL_TIMING_DRIVEN](#GPL_TIMING_DRIVEN)
477479
- [IO_PLACER_H](#IO_PLACER_H)

‎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": -880.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": -964.0,
9898
"compare": ">="
9999
},
100100
"finish__timing__hold__ws": {

‎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/variables.json‎

Lines changed: 6 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,11 @@ USE_NEGOTIATION:
643643
description: |
644644
Enable using negotiation legalizer for detailed placement.
645645
default: 0
646+
GPL_RANDOM_SEED:
647+
description: |
648+
Specifies a random seed for global placement. Useful for perturbation studies.
649+
stages:
650+
- place
646651
GPL_TIMING_DRIVEN:
647652
description: |
648653
Specifies whether the placer should use timing driven placement.

‎tools/OpenROAD‎

Submodule OpenROAD updated 150 files

0 commit comments

Comments
 (0)