Skip to content

Commit

Permalink
Merge pull request #2568 from Pinata-Consulting/global-place-easier-t…
Browse files Browse the repository at this point in the history
…o-read-code

global place: easier to read .tcl code
  • Loading branch information
maliberty authored Nov 17, 2024
2 parents d1165a8 + 42c797a commit ccd5a71
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
4 changes: 1 addition & 3 deletions flow/scripts/global_place.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ proc do_placement {global_placement_args} {
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT)] \
$global_placement_args]

if { 0 != [llength [array get ::env GLOBAL_PLACEMENT_ARGS]] } {
lappend all_args {*}$::env(GLOBAL_PLACEMENT_ARGS)
}
lappend all_args {*}$::env(GLOBAL_PLACEMENT_ARGS)

log_cmd global_placement {*}$all_args
}
Expand Down
17 changes: 4 additions & 13 deletions flow/scripts/global_place_skip_io.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,13 @@ source $::env(SCRIPTS_DIR)/load.tcl
erase_non_stage_variables place
load_design 2_floorplan.odb 2_floorplan.sdc


if { [env_var_exists_and_non_empty FLOORPLAN_DEF] } {
puts "FLOORPLAN_DEF is set. Skipping global placement without IOs"
} else {
set place_density [place_density_with_lb_addon]

if { 0 != [llength [array get ::env GLOBAL_PLACEMENT_ARGS]] } {
log_cmd global_placement -skip_io -density $place_density \
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
{*}$::env(GLOBAL_PLACEMENT_ARGS)
} else {
log_cmd global_placement -skip_io -density $place_density \
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT)
}
log_cmd global_placement -skip_io -density [place_density_with_lb_addon] \
-pad_left $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
-pad_right $::env(CELL_PAD_IN_SITES_GLOBAL_PLACEMENT) \
{*}$::env(GLOBAL_PLACEMENT_ARGS)
}

write_db $::env(RESULTS_DIR)/3_1_place_gp_skip_io.odb
1 change: 1 addition & 0 deletions flow/scripts/variables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ REPAIR_PDN_VIA_LAYER:
GLOBAL_PLACEMENT_ARGS:
description: >
Use additional tuning parameters during global placement other than default args defined in global_place.tcl.
default: ""
ENABLE_DPO:
description: >
Enable detail placement with improve_placement feature.
Expand Down

0 comments on commit ccd5a71

Please sign in to comment.