Skip to content

log_cmd improve_placement& optimize_mirroring#4155

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:log-dpo
Apr 17, 2026
Merged

log_cmd improve_placement& optimize_mirroring#4155
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:log-dpo

Conversation

@openroad-ci

Copy link
Copy Markdown
Member

No description provided.

Signed-off-by: Matt Liberty <mliberty@precisioninno.com>

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request updates flow/scripts/detail_place.tcl to wrap the improve_placement and optimize_mirroring commands with log_cmd for better logging. A review comment suggests refactoring the logic for building improve_placement arguments by using the append_env_var helper to enhance code conciseness and maintain consistency with other parts of the script.

Comment on lines 23 to 27
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
}

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

@maliberty maliberty enabled auto-merge April 16, 2026 23:57
@maliberty maliberty merged commit 8927648 into The-OpenROAD-Project:master Apr 17, 2026
7 of 8 checks passed
@maliberty maliberty deleted the log-dpo branch April 17, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants