Skip to content
Merged
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
6 changes: 3 additions & 3 deletions flow/scripts/detail_place.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ proc do_dpl { } {

if { $::env(ENABLE_DPO) } {
if { [env_var_exists_and_non_empty DPO_MAX_DISPLACEMENT] } {
improve_placement -max_displacement $::env(DPO_MAX_DISPLACEMENT)
log_cmd improve_placement -max_displacement $::env(DPO_MAX_DISPLACEMENT)
} else {
improve_placement
log_cmd improve_placement
}
Comment on lines 23 to 27

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The logic for building arguments for improve_placement can be simplified using the append_env_var helper. This is more concise and maintains consistency with how other commands (like detailed_placement at line 20) are handled in this script.

    set dpo_args {}
    append_env_var dpo_args DPO_MAX_DISPLACEMENT -max_displacement 1
    log_cmd improve_placement {*}$dpo_args

}
optimize_mirroring
log_cmd optimize_mirroring

utl::info FLW 12 "Placement violations [check_placement -verbose]."

Expand Down