-
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
Grouping Chisel API #1073
Grouping Chisel API #1073
Conversation
LGTM! Thanks! |
|
||
|
||
object group { | ||
def apply[T <: Data](components: Seq[T], newModule: String, newInstance: String, outputSuffix: Option[String] = None, inputSuffix: Option[String] = None)(implicit compileOptions: CompileOptions): Unit = { |
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.
Scaladoc would be appreciated :)
Would it make sense for this to be a scoped API? Though I guess the problem there is that the items in the scope aren't 'visible' outside, depending on if they need to be referred to from outside or if it's more modular and encapsulated. |
The scoping probably won't work for most of my use cases. If I were able to cleanly put a scope around the items I wanted grouped I wouldn't need this pass at all. |
Is this still in the works? |
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, how far back should this be backported?
I think it can be backported to 1.2.x? |
* Added group chisel API * Removed println * Added scaladoc * Added more tests * Cleaned spacing and removed println Co-authored-by: Chick Markley <chick@qrhino.com> Co-authored-by: Jim Lawson <ucbjrl@berkeley.edu> Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> (cherry picked from commit 161938b)
* Added group chisel API * Removed println * Added scaladoc * Added more tests * Cleaned spacing and removed println Co-authored-by: Chick Markley <chick@qrhino.com> Co-authored-by: Jim Lawson <ucbjrl@berkeley.edu> Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> (cherry picked from commit 161938b)
* Added group chisel API * Removed println * Added scaladoc * Added more tests * Cleaned spacing and removed println Co-authored-by: Chick Markley <chick@qrhino.com> Co-authored-by: Jim Lawson <ucbjrl@berkeley.edu> Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> (cherry picked from commit 161938b) Co-authored-by: Adam Izraelevitz <azidar@gmail.com>
* Added group chisel API * Removed println * Added scaladoc * Added more tests * Cleaned spacing and removed println Co-authored-by: Chick Markley <chick@qrhino.com> Co-authored-by: Jim Lawson <ucbjrl@berkeley.edu> Co-authored-by: Schuyler Eldridge <schuyler.eldridge@ibm.com> (cherry picked from commit 161938b) Co-authored-by: Adam Izraelevitz <azidar@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Type of change: feature request
Impact: API addition (no impact on existing code)
Development Phase: implementation
Release Notes
At the request of @colinschmidt, added a chisel annotation API for triggering the
firrtl.transforms.GroupComponents
transformation.