Skip to content

CTS: fix the correct value of max fanout - #9259

Merged
maliberty merged 15 commits into
The-OpenROAD-Project:masterfrom
luis201420:cts_fix_defined_fanout
Jan 21, 2026
Merged

maliberty merged 15 commits into
The-OpenROAD-Project:masterfrom
luis201420:cts_fix_defined_fanout

Conversation

@luis201420

@luis201420 luis201420 commented Jan 15, 2026 •

Copy link
Copy Markdown
Contributor

Some designs define the max fanout using the set_max_fanout VALUE [current_design] command (where VALUE is the defined fanout value), which adds a fanout limit to the top instance rather than a specific buffer. The CTS only checked if the selected buffer had a defined fanout limit, ignoring whether the top instance had a defined fanout limit.

This PR adds a check to consider whether the top instance has a defined fanout limit.

In the results, the following designs show a significant degradation in their metrics:

  • asap7/cva6:
Metric Old New
finish__timing__setup__tns -2.60392 -6.61304
finish__timing__setup__ws -1.75515 -4.56712

-sky130hd/microwatt:

Metric Old New
detailedroute__antenna__violating__nets 0 1
- gf12/coyote:
Metric Old New
finish__timing__hold__tns -1.12796 -16.0289
finish__timing__hold__ws -1.12796 -4.79894

…out for a buffer

Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
@luis201420
luis201420 requested a review from arthurjolo January 15, 2026 01:16

@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 correctly adds a check for the max fanout limit set on the top-level design, which was previously ignored. While this is a good fix, I've found a critical logic issue in how the fanout limit is handled when a buffer is considered invalid. The current implementation could lead to either ignoring the top-level fanout limit or using an incorrect maximum value. I've provided a suggestion to fix this, ensuring the fanout constraints are applied correctly and consistently.

Comment thread src/cts/src/TritonCTS.cpp Resolved
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@arthurjolo
arthurjolo requested a review from maliberty January 16, 2026 17:11
@maliberty

Copy link
Copy Markdown
Member

Is there a metrics PR that goes with this?

Signed-off-by: luis201420 <luisemv@precisioninno.com>
Signed-off-by: luis201420 <luisemv@precisioninno.com>
@luis201420

Copy link
Copy Markdown
Contributor Author

Is there a metrics PR that goes with this?

Yes, metric updates are needed in some designs. I created a PR with the updates.

Signed-off-by: luis201420 <luisemv@precisioninno.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@maliberty

Copy link
Copy Markdown
Member

@maliberty
maliberty merged commit cf83490 into The-OpenROAD-Project:master Jan 21, 2026
10 checks passed
@luis201420
luis201420 deleted the cts_fix_defined_fanout branch January 21, 2026 13:01
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.

3 participants