-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent behaviour for Cell.getSitePinFromLogicalPin() #473
Draft
eddieh-xlnx
wants to merge
1
commit into
master
Choose a base branch
from
get_site_pin_from_log
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clavin-xlnx (see PR main description first). This is where I waive the possibly-incorrect result. The question is: is it really incorrect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking about it some more, when we have a net that reaches a site's
A3
andAX
input pins, and for some reason there is no intra-site routing to follow, then I think it's not unreasonable forCell.getSitePinFromLogicalPin()
to default toAX
for flops.The question in the
A3
-only case, should it consider a LUT routethru (where feasible) as a way of reaching that net's sink?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the behavior of
Cell.getSitePinFromLogicalPin()
is in question. We should probably update the Javadoc of this method once we settle on a behavior. I would say that this method should return the first routedSitePinInst
if one exists. If a routedSitePinInst
does not exist, it seems like it should return null.In the case where the
SitePinInst
already exists, but is not routed and theSitePinInst
belongs to the net connected to the logical pin on the cell, then I am ok with changing its behavior to identify what it should be. But again, I think we should also update the Javadoc ofDesignTools.getRoutedSitePin()
because it currently claims to returnnull
when there is no routed pin.I think defaulting to the
*X
input site pins for logicalD
inputs onSLICE
flip flops makes sense. For unoccupied LUT inputs site pins with no other options, I am ok with those when there is no other option.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My understanding is that
DesignTools.getRoutedSitePin()
examines intra-site routing to tell you what the current site pin is -- which the test does check returns always returnsnull
since there is no intra-site routing. It looks likeCell.getSitePinFromLogicalPin()
is for answering the question of what a future site pin could/should be -- presumably, ahead of performing any intra-site routing.In this context, it looks like
Cell.getSitePinFromLogicalPin()
is working as expected, except it doesn't seem to consider LUT routethrus when looking to re-use existing site pins from the same net.Just to be clear, calling
Cell.getSitePinFromLogicalPin()
on a site with no intra-site routing with the following net sinks:null
(correct){A3, AX}
givesAX
(correct)AX
givesAX
(correct)A3
givesnull
(in question, but I think I can live with this until it bites me next time).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this behavior is fine and if we want to extend the
A3
case to also returnA3
, that is fine too. But it would appear that the Javadoc descriptions are incorrect.