-
Notifications
You must be signed in to change notification settings - Fork 615
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
Added Force Name API #1634
Added Force Name API #1634
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.
I approve of the API and believe this will address my use case.
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 looks fine (with one quibble about the mdocs)
Based on the commits in it perhaps it needs a rebase
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.
Overall looks good. Lots of nits and please rebase.
Is there a reason to not expect a new firttl |
@colinschmidt This is the first time we've exposed a user-facing API which uses transforms to rename names. It is has the strongest semantics, meaning basically error if I can't do it. I'd see this as a core utility, so we wouldn't introduce a second way for users to rename things via a FIRRTL transform. In general, it's best not to use this utility (it should be a last resort). However, in some cases you need backwards compatibility, and this enables more control/enforcement of names that was not supported by the existing naming mechanisms. |
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.
LGTM!
* Added forcename transform and tests * Added documentation and additional error checking * Added mdoc. Added RunFirrtlTransform trait * Removed TODO comment * Addressed reviewer feedback * Removed trailing comma Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 2d98132)
* Added forcename transform and tests * Added documentation and additional error checking * Added mdoc. Added RunFirrtlTransform trait * Removed TODO comment * Addressed reviewer feedback * Removed trailing comma Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit 2d98132) Co-authored-by: Adam Izraelevitz <azidar@gmail.com>
Contributor Checklist
docs/src
?Type of Improvement
API Impact
Adds a new API - forcename.
Backend Code Generation Impact
This only changes generated Verilog names if the API is used. Otherwise, no changes.
Desired Merge Strategy
Release Notes
New 'forcename' API enables enforcing the naming of signals or instances, even if a FIRRTL transform renames them.
Reviewer Checklist (only modified by reviewer)
Please Merge
?