Skip to content

grt: fix mergeNets function - #9272

Merged
maliberty merged 10 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:grt_merge
Jan 18, 2026
Merged

maliberty merged 10 commits into
The-OpenROAD-Project:masterfrom
The-OpenROAD-Project-staging:grt_merge

Conversation

@openroad-ci

@openroad-ci openroad-ci commented Jan 16, 2026 •

Copy link
Copy Markdown
Member

Fixes #9269.

…urvivor net

Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@eder-matheus

Copy link
Copy Markdown
Member

@maliberty I started a secure-ci.

@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 fixes an issue in the mergeNets function by improving the logic in mergeNetsRouting and connectRouting. The connectRouting function now returns a boolean indicating success, which is used to correctly set the dirty flag on nets that fail to merge properly. A new helper function updateNetPins is introduced to encapsulate pin update logic, improving code organization. The inDbNetPreMerge callback in dbNet.cpp is moved to ensure that net merging in the global router happens after the database terminals are updated, which is crucial for the new logic to work correctly. The changes are sound and improve the robustness of net merging. I have one suggestion to further improve maintainability by using the new helper function updateNetPins in GlobalRouter::updateDirtyNets.

Comment thread src/grt/include/grt/GlobalRouter.h Resolved
Signed-off-by: Eder Monteiro <emrmonteiro@precisioninno.com>
@github-actions

Copy link
Copy Markdown
Contributor

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

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

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

Comment thread src/odb/src/db/dbNet.cpp Resolved
@github-actions

Copy link
Copy Markdown
Contributor

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

@eder-matheus

Copy link
Copy Markdown
Member

@maliberty PR with metrics updates here: The-OpenROAD-Project/OpenROAD-flow-scripts#3813

@maliberty
maliberty merged commit 35020d1 into The-OpenROAD-Project:master Jan 18, 2026
10 checks passed
@maliberty
maliberty deleted the grt_merge branch January 18, 2026 16:27
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.

Guide preservation on buffer removal

4 participants