diff options
| author | azidar | 2015-07-29 20:07:36 -0700 |
|---|---|---|
| committer | azidar | 2015-07-29 20:07:36 -0700 |
| commit | c8e06e9b3b0945d0b8634aa3ab1fd71a600a7e01 (patch) | |
| tree | ffc36b60e08653ff28a34d70998a85e0294e4808 /test | |
| parent | e4552dcbc844b00e7e4799c882eb00a8be165e9f (diff) | |
| parent | 7646c2e3edf90ea13a83b76c97f35877263c5e63 (diff) | |
Merge branch 'master' of github.com:ucb-bar/firrtl into new-low-firrtl
Diffstat (limited to 'test')
| -rw-r--r-- | test/chisel3/Test.fir | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/chisel3/Test.fir b/test/chisel3/Test.fir new file mode 100644 index 00000000..f0d8f80e --- /dev/null +++ b/test/chisel3/Test.fir @@ -0,0 +1,18 @@ +; RUN: firrtl -i %s -o %s.v -X verilog -p c | tee %s.out | FileCheck %s +; CHECK: Done! + +circuit Test : + module Test : + input clk : Clock + input reset : UInt<1> + input falling : UInt<1> + + reg hold : UInt<100>, clk, UInt(1) + + hold := UInt("h42") + when reset : + hold := UInt("h7f") + else : + when falling : + hold := UInt("h8f") + |
