diff options
| author | azidar | 2015-10-07 14:48:04 -0700 |
|---|---|---|
| committer | azidar | 2015-10-07 14:49:54 -0700 |
| commit | 4183c648b719eac9da26e2d9d34fa852ebdbfd20 (patch) | |
| tree | 87d216e61563d0498c29953b824848ab92a7ade9 /test/features/Stop.fir | |
| parent | 9f2e1fd28f8526f7b68dc4b0ea030ceded720697 (diff) | |
Added Printf and Stop to firrtl. #23 #24.
Diffstat (limited to 'test/features/Stop.fir')
| -rw-r--r-- | test/features/Stop.fir | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/features/Stop.fir b/test/features/Stop.fir new file mode 100644 index 00000000..fc8869fa --- /dev/null +++ b/test/features/Stop.fir @@ -0,0 +1,20 @@ +; 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 p : UInt<1> + input q : UInt<1> + when p : + stop(0) + when q : + stop(1) + stop(3) + +;CHECK: when p : stop(0) +;CHECK: when q : stop(1) +;CHECK: stop(3) + +;CHECK: Done! + |
