-
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
Switch to HowToSerialize for Emission #1405
Conversation
f82abf0
to
99bc955
Compare
99bc955
to
4eb7e9f
Compare
308e16b
to
19844a0
Compare
@jackkoenig or @ekiwi-sifive: Can I get a review on this one? Builds are going to be busted until this goes through since chipsalliance/firrtl#1277 was merged. |
Change ChiselStage helper methods for emitting FIRRTL (emitFirrtl) and Verilog (emitVerilog) to look for Circuit and Verilog annotations instead of DeletedAnnotations. This is needed after migrating to the CustomFileEmission mixin in FIRRTL where FIRRTL will no longer delete emitter annotations. Signed-off-by: Schuyler Eldridge <[email protected]>
Removes the explicit chisel3.phases.Emitter and instead does emission with a CustomFileEmission mixin to ChiselCircuitAnnotation. This then prevents the need for passing around DeletedAnnotations. As a consequence, I removed an unnecessary run of a second Converter in the Driver. Signed-off-by: Schuyler Eldridge <[email protected]>
Signed-off-by: Schuyler Eldridge <[email protected]>
Signed-off-by: Schuyler Eldridge <[email protected]>
19844a0
to
76831ef
Compare
e3d6562
to
fb030af
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.
If this is going to fix chisel then let's
fb030af
to
76831ef
Compare
In the spirit of expediency, I'm going to revert this to the passing commit. I'll open a new PR to add deprecations and clean things up (what I was adding to the PR before everyone realized the build was broken...). |
* Update scalatest to 3.1.1 * Update scalatest to 3.1.1 * Update scalatest to 3.1.1 Co-authored-by: Jim Lawson <[email protected]> Co-authored-by: Schuyler Eldridge <[email protected]>
This removes the
chisel3.stage.phases.Emitter
and moves its emission logic into theChiselCircuitAnnotation
. This uses the newHowToSerialize
mix-in provided by chipsalliance/firrtl#1277.A consequence of this is that there is no longer a need for generating
DeletedAnnotation
s and for introspection ofDeletedAnnotation
s to determine an execution result or a view of some sequence of annotations.Related issue: Depends on chipsalliance/firrtl#1277
Type of change: other enhancement
Impact: API modification
Development Phase: implementation
Release Notes