-
Notifications
You must be signed in to change notification settings - Fork 603
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
make parameters for util modules public #1452
make parameters for util modules public #1452
Conversation
Would it make sense to override the desired name in these modules directly based on these parameters? |
That's been my thinking. It also suggests we should provide some standard, structural serialization of arbitrary |
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.
Discussed at the dev meeting. This looks good. Can you also make the gen
parameter public? That may be useful in generating the name via serialization of the data type.
If you have good Chisel utility names, can you upstream those in a follow-up PR?
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.
Suggesting changes for @seldridge 's reqest to make the gen
also val
Dismissing my review to wait on @mwachs5 changes.
make gen public Co-authored-by: Megan Wachs <megan@sifive.com>
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!
Related issue:
chipsalliance/rocket-chip#2452 (comment) The parameters of modules like
Queue
are useful for generating better names, but it is not possible to generate a fully unique name because parameters likepipe
andflow
are private.Type of change: other enhancement
Impact: API addition (no impact on existing code)
Development Phase: implementation
Release Notes
make parameters of modules in chisel3.util public