diff options
Diffstat (limited to 'test/features/Printf.fir')
| -rw-r--r-- | test/features/Printf.fir | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/features/Printf.fir b/test/features/Printf.fir new file mode 100644 index 00000000..8449825f --- /dev/null +++ b/test/features/Printf.fir @@ -0,0 +1,19 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s + +;CHECK: Lower To Ground +circuit Top : + module Top : + input x : {y : UInt<1>} + input p : UInt<1> + printf("Hello World!\n") + printf("Hello World! %x\n", x.y) + when p : + printf("In consequence\n") + else : + printf("In alternate\n") + +;CHECK: printf("Hello World!\n") +;CHECK: printf("Hello World! %x\n", x$y) +;CHECK: when p : printf("In consequence\n") +;CHECK: when not(p) : printf("In alternate\n") +;CHECK: Done! |
