circt/test/Dialect/FIRRTL/SFCTests/emit-metadata.fir

21 lines
525 B
Plaintext

; RUN: firtool --verify-diagnostics --verilog %s | FileCheck %s
FIRRTL version 4.0.0
circuit Foo : %[[{
"class": "firrtl.transforms.BlackBoxInlineAnno",
"name": "hello.v",
"text": "// world",
"target": "~Foo|Foo"
},{
"class": "sifive.enterprise.firrtl.SitestBlackBoxAnnotation",
"filename": "blackboxes.json"
}]]
; An inline blackbox should not appear in the generated metadata.
extmodule Foo :
input clock : Clock
defname = Foo
; CHECK-LABEL: FILE "blackboxes.json"
; CHECK-EMPTY:
; CHECK-NEXT: []