Skip to content

Comments

rsz: Improve error message for RSZ-0074#9514

Merged
eder-matheus merged 1 commit intoThe-OpenROAD-Project:masterfrom
dnltz:WIP/dnltz/rsz-fix-error-msg
Feb 23, 2026
Merged

rsz: Improve error message for RSZ-0074#9514
eder-matheus merged 1 commit intoThe-OpenROAD-Project:masterfrom
dnltz:WIP/dnltz/rsz-fix-error-msg

Conversation

@dnltz
Copy link
Contributor

@dnltz dnltz commented Feb 21, 2026

The currently printed error message is not really helpful for debugging:

failed to build tree from gloubal routes: found route to 1 pins, expected 0

Add the pin name and grid x + y values to the error message. Also fix a typo.

@dnltz
Copy link
Contributor Author

dnltz commented Feb 21, 2026

@eder-matheus can you please check this PR? I also didn't test it with the issue in The-OpenROAD-Project/OpenROAD-flow-scripts#3890 (reply in thread)

Copy link
Contributor

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

Choose a reason for hiding this comment

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

Code Review

The pull request improves the error message for RSZ-0074 by adding the pin name and grid coordinates, which is helpful for debugging. However, several critical syntax errors were introduced that will prevent the code from compiling, including a typo in a member access (network_-_>) and a missing comma in the logger_->error call. Additionally, the new variable drvr_pin_pt is redundant because the drvr_pin parameter is already available in the function scope, and its declared type PinPt appears to be undefined. It is recommended to remove the redundant variable and fix the syntax errors in the error message call.

@dnltz dnltz force-pushed the WIP/dnltz/rsz-fix-error-msg branch from b597200 to fda28d2 Compare February 21, 2026 05:59
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

@dnltz dnltz force-pushed the WIP/dnltz/rsz-fix-error-msg branch 2 times, most recently from dff8664 to d093db8 Compare February 22, 2026 12:23
Copy link
Collaborator

@oharboe oharboe left a comment

Choose a reason for hiding this comment

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

Translating from an error message to location in GUI is tedious, the DRC error dropdown does that for us, e.g. PDN errors are listed there.

That's beyond the scope of the improvement in this PR, but related, so I thought I'd mention it.

Is there a mechanism today to add warnings/errors by category, such as PDN does, to the DRC viewer?

@dnltz
Copy link
Contributor Author

dnltz commented Feb 23, 2026

Translating from an error message to location in GUI is tedious, the DRC error dropdown does that for us, e.g. PDN errors are listed there.

That's beyond the scope of the improvement in this PR, but related, so I thought I'd mention it.

Is there a mechanism today to add warnings/errors by category, such as PDN does, to the DRC viewer?

This error won't generate any ODB file. So, not sure how to watch this violation.

@dnltz dnltz force-pushed the WIP/dnltz/rsz-fix-error-msg branch from d093db8 to 62d6fc1 Compare February 23, 2026 14:11
@dnltz dnltz force-pushed the WIP/dnltz/rsz-fix-error-msg branch from 62d6fc1 to f3ea844 Compare February 23, 2026 14:40
@github-actions
Copy link
Contributor

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

1 similar comment
@github-actions
Copy link
Contributor

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

@dnltz
Copy link
Contributor Author

dnltz commented Feb 23, 2026

@eder-matheus can you please re-run the failed CI run?

@eder-matheus
Copy link
Member

@eder-matheus can you please re-run the failed CI run?

This failure is happening on master branch too, so it'll not be resolved by just re-running. @maliberty how should we proceed?

@eder-matheus
Copy link
Member

@dnltz Could you please merge the latest master to your branch? It should help with the failure.

The currently printed error message is not really helpful for debugging:

  failed to build tree from gloubal routes: found route to 1 pins, expected 0

Add the pin name and grid x + y values to the error message. Also fix a typo.

Signed-off-by: Daniel Schultz <dnltz@aesc-silicon.de>
@dnltz dnltz force-pushed the WIP/dnltz/rsz-fix-error-msg branch from f3ea844 to 9eb8846 Compare February 23, 2026 19:31
@github-actions
Copy link
Contributor

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

@eder-matheus eder-matheus merged commit 92a85a0 into The-OpenROAD-Project:master Feb 23, 2026
13 checks passed
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