dbSta: keep top ports on local nets through child feedthroughs - #11624
Open
AbhinavChoudhary24167 wants to merge 3 commits into
Open
AbhinavChoudhary24167 wants to merge 3 commits into
AbhinavChoudhary24167 wants to merge 3 commits into
Conversation
Signed-off-by: Abhinav Choudhary <abhinav24167@iiitd.ac.in>
Signed-off-by: Abhinav Choudhary <abhinav24167@iiitd.ac.in>
Contributor
There was a problem hiding this comment.
Welcome to OpenROAD! Thanks for opening your first PR.
Before we review:
- Contribution Guide: https://openroad.readthedocs.io/en/latest/contrib/GettingInvolved.html
- Build Instructions: https://openroad.readthedocs.io/en/latest/contrib/BuildWithCMake.html
Please ensure:
- CI passes
- Code is properly formatted
- Tests are included where applicable
A maintainer will review shortly!
Contributor
There was a problem hiding this comment.
Code Review
This pull request modifies Verilog2db::makeModNetsForSubmodule in dbReadVerilog.cc to use NetTermIterator instead of NetConnectedPinIterator when connecting top-level bterms. This ensures that only terminals on the local net belonging to the top module are traversed, preventing child feedthroughs from reconnecting unrelated ports. Additionally, a new test case is introduced to verify this behavior, several tests are removed from the expected failures list, and the subproject src/sta is updated. As there are no review comments provided, I have no further feedback to offer.
Signed-off-by: Abhinav Choudhary <abhinav24167@iiitd.ac.in>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When a child module feeds its input through to its output, the reader can attach both top ports to the output's module net. For example,
top(ti, to)instantiating a wrapper aroundassign lo = lileaves both BTerms on modnetto, although the child input remains bound toti. Preserving input aliases then emitsassign to = tialongside the child's output driver, breaking hierarchy conformance.Verilog2db::makeModNetsForSubmoduleuses the terminals of the exact parent net to find top BTerms. The previousconnectedPinIteratortraversed child feedthroughs and reconnected ports from other local nets. This correction retains local module connections and flattened physical connectivity. The reader regression covers nested bus feedthroughs and an intentional local top-level alias.This is the integration companion to OpenSTA #420, whose head is pinned here. Four buffer-insertion goldens include the required input assignments. Repaired flat and hierarchy fixtures use the normal structural and equivalence assertions after their obsolete expected-failure entries are removed.
Validation:
5386453d3a.Every one of the 436 failing Bazel targets reported by OpenSTA PR-420 build 2 has an explicit passing verdict in both of this PR's corrected CI builds. Those failures comprised 214 hierarchy structural targets, 220 conformance targets, and two buffer-insertion targets. OpenSTA #420's pipeline still selects unmodified OpenROAD master; incorporating this companion is required before that original integration check can validate the repaired combination.