Skip to content

Commit d80ff7d

Browse files
committed
Use new Chisel annotations API
The `ChiselAnnotation` API is going away in Chisel 7. Also in Chisel 7, this trait can be replaced by `chisel3.util.experimental.InlineInstanceAllowDedup`: chipsalliance/chisel#4508
1 parent 4ffe4e6 commit d80ff7d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/main/scala/rocket/DCache.scala

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ import freechips.rocketchip.util.SeqBoolBitwiseOps
2525

2626
// TODO: delete this trait once deduplication is smart enough to avoid globally inlining matching circuits
2727
trait InlineInstance { self: chisel3.experimental.BaseModule =>
28-
chisel3.experimental.annotate(
29-
new chisel3.experimental.ChiselAnnotation {
30-
def toFirrtl: firrtl.annotations.Annotation = firrtl.passes.InlineAnnotation(self.toNamed) } )
28+
chisel3.experimental.annotate(self)(Seq(firrtl.passes.InlineAnnotation(self.toNamed)))
3129
}
3230

3331
class DCacheErrors(implicit p: Parameters) extends L1HellaCacheBundle()(p)

0 commit comments

Comments
 (0)