Access Points Know Neighbours#10545
Draft
openroad-ci wants to merge 4 commits into
Draft
Conversation
Signed-off-by: bnmfw <bernardoborgessandoval@gmail.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces tracking for compatible neighbors on access points (frAccessPoint) and refactors access point retrieval in FlexPA by introducing a helper method DPNodeToAccessPoint. Feedback is provided regarding a typo in the newly added method resetCompatibleNeigbours (missing 'h' in 'Neighbours') and its corresponding call site.
| } | ||
| void setAllowVia(bool in) { allow_via_ = in; } | ||
| void addCompatibleNeighbour() { compatible_neighbors_++; } | ||
| void resetCompatibleNeigbours() { compatible_neighbors_ = 0; } |
Contributor
There was a problem hiding this comment.
There is a typo in the method name resetCompatibleNeigbours (missing 'h' in 'Neighbours'). It should be renamed to resetCompatibleNeighbours to be consistent with addCompatibleNeighbour and getCompatibleNeighbours.
Suggested change
| void resetCompatibleNeigbours() { compatible_neighbors_ = 0; } | |
| void resetCompatibleNeighbours() { compatible_neighbors_ = 0; } |
| nodes[pin_idx][ap_idx] = std::make_unique<FlexDPNode>(); | ||
| nodes[pin_idx][ap_idx]->setIdx({pin_idx, ap_idx}); | ||
| nodes[pin_idx][ap_idx]->setNodeCost(ap->getCost()); | ||
| ap->resetCompatibleNeigbours(); |
Contributor
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
Supports issue #9948. Access points now have the
compatible_neighbors_which represents the number of access points on neighboring pins they are compatible with. This variable is only changed on the first iteration of access pattern creation where the compatibility graph is raw without the any access points marked as used. This PR does not change tool behaviour, only make so this new variable exists and has the correct valueAlso creates the helper
DPNodeToAccessPointfunction that is used on the new feature.Type of Change
Impact
Does not impact tool behavior
Verification
./etc/Build.sh).Related Issues
issue #9948