-
Notifications
You must be signed in to change notification settings - Fork 592
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
Enforce port name uniqueness #2567
Conversation
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.
forceName
has always been convoluted but this makes it a bit worse, I've made some suggestions that may or may not be completely clear so lets chat if you want some clarification.
src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala
Outdated
Show resolved
Hide resolved
7a0c541
to
3b36079
Compare
Replace namePorts with checkPorts
Co-authored-by: Jack Koenig <jack.koenig3@gmail.com>
ab0d499
to
1d39d26
Compare
1d39d26
to
a2ad31e
Compare
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.
A couple of minor requests but otherwise this is good to go!
src/test/scala/chiselTests/experimental/ProgrammaticPortsSpec.scala
Outdated
Show resolved
Hide resolved
@Mergifyio update |
✅ Branch has been successfully updated |
This PR breaks playground regression CI in https://github.com/chipsalliance/playground/runs/7890002567, which should be fixed in the RC. |
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Contributor Checklist
docs/src
?Type of Improvement
API Impact
Using
suggestName
with the same name for multiple ports will now throw an error.Backend Code Generation Impact
Desired Merge Strategy
Release Notes
Port name duplication and port name collision with other components like wires now throws an error instead of silently sanitizing the names.
Reviewer Checklist (only modified by reviewer)
3.4.x
, [small] API extension:3.5.x
, API modification or big change:3.6.0
)?Enable auto-merge (squash)
, clean up the commit message, and label withPlease Merge
.Create a merge commit
.