Skip to content

cts: isolate tests from global and detailed placement (#10749)#10769

Open
s-sreedhar wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
s-sreedhar:cts-isolate-tests
Open

cts: isolate tests from global and detailed placement (#10749)#10769
s-sreedhar wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
s-sreedhar:cts-isolate-tests

Conversation

@s-sreedhar

Copy link
Copy Markdown

Summary

This PR isolates several CTS regression tests (gated_clock4.tcl, hier_insertion_delay.tcl, and buffer_ports.tcl) by removing unnecessary upstream dependencies on floorplanning and placement (global_placement and detailed_placement).

Instead of dynamically invoking GPL and DPL during the test runs, the tests now load a pre-placed and validated design database (.odb file) directly via read_db. This prevents changes in DPL/GPL (such as minor legalization coordinate differences) from breaking unrelated CTS regression targets and avoids large log maintenance overhead (ref #10749).

Type of Change

  • Refactoring

Impact

No change to OpenROAD tool behavior. Isolates CTS integration tests from upstream placement tool variations and cuts test execution runtime

Verification

  • I have verified that the local build succeeds (./etc/Build.sh).
  • I have run the relevant tests and they pass.
  • My code follows the repository's formatting guidelines.
  • I have signed my commits (DCO).

Related Issues

Fixes #10749

@s-sreedhar s-sreedhar requested a review from a team as a code owner June 27, 2026 19:51
@s-sreedhar s-sreedhar requested a review from precisionmoon June 27, 2026 19:51

@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 refactors several Clock Tree Synthesis (CTS) tests (including buffer_ports, gated_clock4, and hier_insertion_delay) to load pre-placed designs from .odb database files instead of running the entire floorplanning, pin placement, and global/detailed placement steps from scratch. This simplifies the test scripts and reduces the test execution output. I have no feedback to provide as there are no review comments.

@github-actions github-actions 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.

Welcome to OpenROAD! Thanks for opening your first PR.
Before we review:

Please ensure:

  • CI passes
  • Code is properly formatted
  • Tests are included where applicable
    A maintainer will review shortly!

@maliberty

Copy link
Copy Markdown
Member

Rather than use a .odb please use a .def. The odb format changes over time and def is less effort to maintain.

@s-sreedhar

Copy link
Copy Markdown
Author

Rather than use a .odb please use a .def. The odb format changes over time and def is less effort to maintain.

Okay i ll do that. Thanks


link_design clk_passthrough_top

read_sdc buffer_ports.sdc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

you should still read the sdc

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok i have rectified

Comment thread src/cts/test/hier_insertion_delay.tcl Outdated
-ver_layers $io_placer_ver_layer
global_placement -skip_nesterov_place
detailed_placement
read_def hier_insertion_delay.def

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As this is a hierarchical test case you'll need to read a verilog as well as a def.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Ok thanks for correcting

Signed-off-by: s-sreedhar <s.sreedhargoud@gmail.com>
@s-sreedhar

Copy link
Copy Markdown
Author

I made the changes you have requested. Is every thing okay now?

@s-sreedhar s-sreedhar requested a review from maliberty June 29, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: isolate tests at multiple tools

2 participants