drt: Unifiying Priority Vias Logic - #11175
Draft
bnmfw wants to merge 12 commits into
Draft
Conversation
Signed-off-by: bnmfw <bernardoborgessandoval@gmail.com>
Signed-off-by: bnmfw <bernardoborgessandoval@gmail.com>
Signed-off-by: bnmfw <bernardoborgessandoval@gmail.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the via selection and filtering logic in FlexPA by introducing the getPriorityViaDefs helper function, simplifying the via_defs vector representation, and renaming variables for clarity. The review feedback highlights several improvement opportunities, including resolving a signed/unsigned comparison warning in frAccess.h, marking the new query function as const while avoiding potential map insertion side-effects from operator[], preventing potential underflow/negative index issues when querying layer_num - 1, and fixing a typo in the variable name via_not_int_pin.
Signed-off-by: bnmfw <bernardoborgessandoval@gmail.com>
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.
Summary
Implements the
getPriorityViaDefs()function, which simply puts the logic of "The first two vias have priorities over all others in Pin Access" in a single place, instead of being independently in two places.Users pushing PRs have built on top of the already faulty logic which lead to bad code. Putting this in one place makes things more concise and allows to in the future change this logic. The logic itself is kind of arbitrary, but I'm not changing it, just putting it in one place.
Also applies minor refactors:
Type of Change
Noop refactor
Impact
Pure refactor
Verification
./etc/Build.sh).Related Issues
#10937