Skip to content

Commit

Permalink
fixup! [FIRRTL] Put layer collateral in testbench dir
Browse files Browse the repository at this point in the history
  • Loading branch information
seldridge committed Feb 28, 2024
1 parent 0a451ea commit fb80c1b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions test/Dialect/FIRRTL/lower-layers-errors.mlir
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// RUN: circt-opt -firrtl-lower-layers -verify-diagnostics %s

firrtl.circuit "DuplicateMarkDUTAnnotation" {
// expected-note @below {{the first DUT was found here}}
firrtl.module @Foo() attributes {
annotations = [
{
class = "sifive.enterprise.firrtl.MarkDUTAnnotation"
}
]
} {}
// expected-error @below {{is marked with a 'sifive.enterprise.firrtl.MarkDUTAnnotation', but 'Foo' also had such an annotation}}
firrtl.module @DuplicateMarkDUTAnnotation() attributes {
annotations = [
{
class = "sifive.enterprise.firrtl.MarkDUTAnnotation"
}
]
} {
firrtl.instance foo @Foo()
}
}

0 comments on commit fb80c1b

Please sign in to comment.