diff options
Diffstat (limited to 'test/passes/expand-whens/reg-dwc.fir')
| -rw-r--r-- | test/passes/expand-whens/reg-dwc.fir | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/passes/expand-whens/reg-dwc.fir b/test/passes/expand-whens/reg-dwc.fir new file mode 100644 index 00000000..01347fdd --- /dev/null +++ b/test/passes/expand-whens/reg-dwc.fir @@ -0,0 +1,21 @@ +; RUN: firrtl -i %s -o %s.flo -X flo -p c | tee %s.out | FileCheck %s +circuit top : + module top : + wire p : UInt + p := UInt(1) + reg r : UInt + when p : + r := UInt(20) + +; CHECK: Expand Whens + +; CHECK: circuit top : +; CHECK: module top : +; CHECK: wire p : UInt +; CHECK: reg r : UInt +; CHECK: p := UInt(1) +; CHECK: when p : r := UInt(20) + +; CHECK: Finished Expand Whens + + |
