Skip to content
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

Faster prohibit constraint #881

Merged
merged 2 commits into from
Nov 13, 2023
Merged

Faster prohibit constraint #881

merged 2 commits into from
Nov 13, 2023

Conversation

clavin-xlnx
Copy link
Member

This PR restructures the way DesignTools.addProhibitConstraint() adds the XDC Tcl command. It previously batched up all the get_bels calls into a single monolithic one--with the thinking that it would be faster. However, this is not the case. Instead, it is faster to set the property for each bel individually. Here is a quick comparison of DCP load times for the DCP in our shell tutorial:

DCP Type Vivado Load Runtime
Batched BEL set_property (prior to this PR) 6m4s
Individual BEL set_property (this PR) 1m22s
Binary Netlist+Constraints File (future work) 37s

Copy link
Collaborator

@eddieh-xlnx eddieh-xlnx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work! Do you happen to know the size of belLocations for our tutorial?

@clavin-xlnx
Copy link
Member Author

Great work! Do you happen to know the size of belLocations for our tutorial?

Our tutorial has 91149 BEL prohibit constraints.

@clavin-xlnx clavin-xlnx merged commit 3ca94f1 into master Nov 13, 2023
@clavin-xlnx clavin-xlnx deleted the faster_prohibit branch November 13, 2023 17:30
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.

2 participants