Skip to content

rsz: Preserve dont-touch on hierarchical nets - #11207

Open
jhkim-pii wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:secure-dont-touch-on-modnet
Open

rsz: Preserve dont-touch on hierarchical nets#11207
jhkim-pii wants to merge 1 commit into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:secure-dont-touch-on-modnet

Conversation

@jhkim-pii

Copy link
Copy Markdown
Contributor

Resolve hierarchical set_dont_touch nets to their corresponding flat dbNet.

Fixes #11180

Resolve hierarchical STA nets to their corresponding flat dbNet before reading or updating the dont-touch flag. This avoids treating a dbModNet as a dbNet and corrupting the hierarchical net name in release builds.

Report an error for unresolvable nets and add a regression covering name preservation, flat-net protection, and hierarchical reads.

Signed-off-by: Jaehyun Kim <jhkim@precisioninno.com>
@jhkim-pii jhkim-pii self-assigned this Aug 21, 2026

@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 Resizer::setDontTouch and Resizer::dontTouch to retrieve flat nets using findFlatDbNet instead of staToDb, and adds a unit test to verify hierarchical net protection. However, a critical issue was identified in Resizer::setDontTouch where a null pointer dereference will occur if db_net is null, as the code logs an error but does not return before calling setDoNotTouch.

Comment thread src/rsz/src/Resizer.cc
@jhkim-pii

Copy link
Copy Markdown
Contributor Author

@codex review

@jhkim-pii
jhkim-pii marked this pull request as ready for review August 21, 2026 20:07
@jhkim-pii
jhkim-pii requested a review from a team as a code owner August 21, 2026 20:07
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.

rsz: set_dont_touch on a hierarchical net corrupts dbModNet names

1 participant