Skip to content
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

Merged
merged 9 commits into from
Jun 8, 2020
Merged

Grouping Chisel API #1073

merged 9 commits into from
Jun 8, 2020

Conversation

azidar
Copy link
Contributor

@azidar azidar commented Apr 18, 2019

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.

@azidar azidar requested a review from a team as a code owner April 18, 2019 18:27
@colinschmidt
Copy link
Contributor

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 = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scaladoc would be appreciated :)

@ducky64
Copy link
Contributor

ducky64 commented Apr 19, 2019

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.

@colinschmidt
Copy link
Contributor

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.

@jwright6323
Copy link
Contributor

cc @harrisonliew

Is this still in the works?

Copy link
Contributor

@jackkoenig jackkoenig left a 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?

@azidar
Copy link
Contributor Author

azidar commented Jun 8, 2020

I think it can be backported to 1.2.x?

@azidar azidar added this to the 3.2.x milestone Jun 8, 2020
@azidar azidar added the Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI. label Jun 8, 2020
@mergify mergify bot merged commit 161938b into master Jun 8, 2020
mergify bot pushed a commit that referenced this pull request Jun 8, 2020
* 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)
@mergify mergify bot mentioned this pull request Jun 8, 2020
mergify bot pushed a commit that referenced this pull request Jun 8, 2020
* 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)
@mergify mergify bot mentioned this pull request Jun 8, 2020
@mergify mergify bot added the Backported This PR has been backported label Jun 8, 2020
mergify bot added a commit that referenced this pull request Jun 8, 2020
* 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>
mergify bot added a commit that referenced this pull request Jun 22, 2020
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backported This PR has been backported Please Merge Accepted PRs that are ready to be merged. Useful when waiting on CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants