-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Chisel 7 Support - ChiselAnnotation going away #3722
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
Comments
It looks like ElaborationArtefactAnnotation is also unused? I think all the unused Annotations can be removed. InlineInstance is useful, but I agree that should be changed to |
Regarding DCache's |
Yeah, good point. It would be unintuitive for inlined instances to block dedup |
I'll submit a PR to get rid of most of the annotations except for DCache's |
Okay, this PR contains the removal of most of rocket-chip's annotations, aside from the It impacts APIs that are used by other projects, so I've submitted PRs to those too (and they're listed in the rocket-chip PR). |
I want to clarify that, while Chisel 7 removes Footnotes
|
Ya, that might help us resolve ucb-bar/constellation#81 and chipsalliance/diplomacy#18 |
@jackkoenig I don't see the |
I've tagged v6.7.0, the artifacts should be on Maven in ~2 hours: https://github.com/chipsalliance/chisel/releases/tag/v6.7.0 @tymcauley the new def addResource(blackBoxResource: String): Unit = {
chisel3.experimental.annotate(self)(Seq(BlackBoxInlineAnno.fromResource(blackBoxResource, self.toNamed)))
} Also see the PR (chipsalliance/chisel#4643) that changed from the old to new for an example. Footnotes |
Yup, we can use the new annotation API from chipsalliance/chisel#4643 to fix the remaining |
Resolved by #3724 |
With chipsalliance/chisel#4717, Chisel has removed the
ChiselAnnotation
API, which breaks a number of spots throughout rocket-chip:rocket-chip/src/main/scala/util/ElaborationArtefactAnnotation.scala
Lines 41 to 49 in ac5192c
rocket-chip/src/main/scala/rocket/DCache.scala
Lines 26 to 31 in ac5192c
Can we replace the custom
DCache
InlineInstance
trait with eitherchisel3.util.experimental.InlineInstance
(in Chisel 6.6.0) orInlineInstanceAllowDedup
(in Chisel 7)?Do the other annotations have any consumer, or would they be harmless to remove?
The text was updated successfully, but these errors were encountered: