aboutsummaryrefslogtreecommitdiff
path: root/test/passes/expand-whens/one-when.fir
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/expand-whens/one-when.fir')
-rw-r--r--test/passes/expand-whens/one-when.fir11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/passes/expand-whens/one-when.fir b/test/passes/expand-whens/one-when.fir
index 114e5b5b..4e6ea1e5 100644
--- a/test/passes/expand-whens/one-when.fir
+++ b/test/passes/expand-whens/one-when.fir
@@ -7,21 +7,22 @@ circuit top :
wire i : UInt<1>
wire p : UInt<1>
wire j : UInt<1>
+ j := UInt(1)
reg r : UInt<1>
p := j
when p :
on-reset r := i
- accessor a = m[i]
+ infer accessor a = m[i]
i := a
- accessor b = m[i]
+ infer accessor b = m[i]
b := i
else :
- accessor c = m[i]
+ infer accessor c = m[i]
i := c
- accessor d = m[i]
+ infer accessor d = m[i]
d := i
- accessor e = m[i]
+ infer accessor e = m[i]
when p :
p := i
when e :