Skip to content

Commit 3497c3a

Browse files
committed
Add GPL_RANDOM_SEED flow variable.
Pass -random_seed to gpl in both skip_io (3_1) and regular (3_3). Signed-off-by: Matt Liberty <mliberty@precisioninno.com>
1 parent adeb389 commit 3497c3a

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

‎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.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 pertubation studies.
649+
stages:
650+
- place
646651
GPL_TIMING_DRIVEN:
647652
description: |
648653
Specifies whether the placer should use timing driven placement.

0 commit comments

Comments
 (0)