Skip to content

flow: pass CTS_DPL_DISPLACEMENT to post-CTS detailed_placement#4245

Closed
oharboe wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:cts-dpl-displacement
Closed

flow: pass CTS_DPL_DISPLACEMENT to post-CTS detailed_placement#4245
oharboe wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
oharboe:cts-dpl-displacement

Conversation

@oharboe

@oharboe oharboe commented May 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Seed dpl_args in flow/scripts/cts.tcl from env_var_or_empty CTS_DPL_DISPLACEMENT instead of the empty list, so the post-CTS detailed_placement call can receive extra flags (e.g. -max_displacement <row> <site>) via env var instead of needing a forked script.
  • When CTS_DPL_DISPLACEMENT is unset, env_var_or_empty returns "" and {*}$dpl_args expands to nothing — fully backward compatible with the previous {} initialization.

Test plan

  • CI green
  • With CTS_DPL_DISPLACEMENT unset, post-CTS detailed_placement behaves identically (no flag added).
  • With CTS_DPL_DISPLACEMENT="-max_displacement 5 5", the flag reaches detailed_placement.

Seed `dpl_args` from `env_var_or_empty CTS_DPL_DISPLACEMENT` instead
of the empty list, so callers can pass extra flags (typically
`-max_displacement <row> <site>`) to the detailed_placement run
immediately after CTS without having to fork the script.

When the env var is unset, `env_var_or_empty` returns "" and the
`{*}$dpl_args` expansion is a no-op — behavior matches the prior
`{}` initialization exactly.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.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 the flow/scripts/cts.tcl script to initialize detailed placement arguments using the CTS_DPL_DISPLACEMENT environment variable, allowing for configurable displacement during Clock Tree Synthesis. I have no feedback to provide as no review comments were submitted.

@oharboe oharboe closed this May 20, 2026
@oharboe

oharboe commented May 20, 2026

Copy link
Copy Markdown
Collaborator Author

too specialized for now

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.

1 participant