aboutsummaryrefslogtreecommitdiff
path: root/test/passes/expand-whens/two-when.fir
diff options
context:
space:
mode:
authorazidar2015-12-09 18:31:45 -0800
committerazidar2016-01-16 14:28:17 -0800
commitbe78d49aa01c097978f69a3b022acb2047fdf438 (patch)
tree76dc4b32b5e6861938404ebb4d124ca5b87d13a5 /test/passes/expand-whens/two-when.fir
parentc427b31a1ef8361b643d5f7435aeb42472dfe626 (diff)
New memory works with verilog. Slowly changing tests and fixing bugs.
Decided to not have Conditionally in low firrtl - instead, Print and Stop have enables
Diffstat (limited to 'test/passes/expand-whens/two-when.fir')
-rw-r--r--test/passes/expand-whens/two-when.fir24
1 files changed, 12 insertions, 12 deletions
diff --git a/test/passes/expand-whens/two-when.fir b/test/passes/expand-whens/two-when.fir
index 939fac09..05179cf5 100644
--- a/test/passes/expand-whens/two-when.fir
+++ b/test/passes/expand-whens/two-when.fir
@@ -6,34 +6,34 @@ circuit top :
input clk : Clock
cmem m :{ x : UInt<1>, y : UInt<1> }[2], clk
wire i : UInt<1>
- i := UInt(1)
+ i <= UInt(1)
wire p : UInt<1>
- p := UInt(1)
+ p <= UInt(1)
wire q : { x : UInt<1>, y : UInt<1> }
when p :
wire p2 : UInt<1>
- p2 := UInt(1)
+ p2 <= UInt(1)
when p2 :
infer accessor a = m[i]
- q := a
+ q <= a
infer accessor b = m[i]
- b := q
+ b <= q
else :
infer accessor c = m[i]
- q := c
+ q <= c
infer accessor d = m[i]
- d := q
+ d <= q
else :
wire p3 : UInt<1>
- p3 := UInt(1)
+ p3 <= UInt(1)
when p3 :
infer accessor w = m[i]
- q := w
+ q <= w
infer accessor x = m[i]
- x := q
+ x <= q
else :
infer accessor y = m[i]
- q := y
+ q <= y
infer accessor z = m[i]
- z := q
+ z <= q
; CHECK: Finished Expand Whens