Repository navigation
fix: separate EQUIVALENCE_CHECK from RUN_EQY to avoid requiring eqy #4108
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
Closed
Closed
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
d746549
fix: separate EQUIVALENCE_CHECK from RUN_EQY to avoid requiring eqy
oharboe 3c1ecea
Merge remote-tracking branch 'origin/master' into HEAD
oharboe 22a7104
openroad: bump
oharboe db43185
variables.mk: default RUN_EQY=1 when eqy is available
oharboe 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 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
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
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
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
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.
I don't follow why we need a second variable to control this?
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.
See documentation:
This improves the user experience and helps bazel because the eqy isn't part of normal flow and I don't currently install that tool. We can later, but I think that whether to run eqy and whether to run it on this module should be two concerns.
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 don't see how those are separate. What does it mean to "run eqy" but not on this module?
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.
If you don't have eqy installed, then CTS fails today on modules which have EQUIVALENCE_CHECK =1 (or ?=1).
With this change, if you don't have eqy installed, then RUN_EQY defaults to 0, and cts no longer fails.
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.
Designs with
EQUIVALENCE_CHECK=1(e.g.swerv_wrapper) callexec eqyduring CTS.If
eqyisn't installed on the machine, CTS crashes. An optional toolshouldn't break the build.
The fix: one variable becomes two
EQUIVALENCE_CHECK0(unchanged)RUN_EQYeqybinary1ifeqyis in$PATH, else0If you have
eqyinstalled: nothing changes. Auto-detected, auto-enabled.If you don't have
eqy: builds stop crashing.The 4 files that matter
The core logic change —
cts.tclline 71:Previously this only checked
EQUIVALENCE_CHECK. Now it requires both.The verilog write at line 62 still only needs
EQUIVALENCE_CHECK(no tool required).Auto-detection —
variables.mklines 135-137:Same pattern already used for
stdbufa few lines above.Variable definition —
variables.yamlRUN_EQY blockDocs —
FlowVariables.mdRUN_EQY entry"Why two variables?"
The question from review: "What does it mean to run eqy but not on this module?"
It's the reverse that matters: module wants equivalence checking (
EQUIVALENCE_CHECK=1)but machine doesn't have
eqyinstalled. Without the split, that = build failure.With the split, the verilog files still get written (useful for running
eqylateror elsewhere), the build just skips the tool it can't run.
To merge
Per your review comment: merge master and drop the OpenROAD submodule bump.
The actual change is just the variable split across the 4 files above.