-
Notifications
You must be signed in to change notification settings - Fork 602
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
ppl: save constraints in odb at each call of set_io_pin_constraint command #6692
base: master
Are you sure you want to change the base?
ppl: save constraints in odb at each call of set_io_pin_constraint command #6692
Conversation
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
Signed-off-by: Eder Monteiro <[email protected]>
clang-tidy review says "All clean, LGTM! 👍" |
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.
What are you asking the user to do here and what happens if they don't heed this advice?
I think an error message is better...
"It is strongly recommended to set the mirrored pins before any other constraint, in order to have them properly stored into the database. "
@eder-matheus wouldn't it be better to process the mirror constraints first and then then remainder if order matters? |
…straint to its pair Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
@gadfort @oharboe I've updated the code to not depend on the order we call the commands. It should be able to properly handle multiple mirrored pins and region constraint calls, independently of what is called first. Some unit tests were added to depict some different scenarios, and the result is the expected in all of them. |
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.
clang-tidy made some suggestions
This sounds great! Sounds like I don't have to think about this anymore :-) It is easier to write code and automated tests than documentation that builds a strong mental model with the user so that they can follow an exact recipe. |
Signed-off-by: Eder Monteiro <[email protected]>
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.
clang-tidy made some suggestions
Signed-off-by: Eder Monteiro <[email protected]>
Signed-off-by: Eder Monteiro <[email protected]>
@maliberty This is ready for review. |
No description provided.