Skip to content

Commit dc4b2f3

Browse files
committed
Use new Chisel annotations API
The `ChiselAnnotation` API is going away in Chisel 7. This API was introduced in chipsalliance/chisel#4643 and was released in Chisel 6.7.0.
1 parent 8dab957 commit dc4b2f3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main/scala/protocol/Protocol.scala

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,9 @@ class ProtocolNoC(params: ProtocolNoCParams)(implicit p: Parameters) extends Mod
7474
})
7575
// END: ProtocolNoC
7676

77-
if (params.inlineNoC) chisel3.experimental.annotate(
78-
new chisel3.experimental.ChiselAnnotation {
79-
def toFirrtl: firrtl.annotations.Annotation = firrtl.passes.InlineAnnotation(toNamed)
80-
}
81-
)
77+
if (params.inlineNoC) {
78+
chisel3.experimental.annotate(this)(Seq(firrtl.passes.InlineAnnotation(toNamed)))
79+
}
8280

8381
val protocolParams = params.protocolParams
8482
val minPayloadWidth = protocolParams.map(_.minPayloadWidth).max

0 commit comments

Comments
 (0)