diff options
| author | azidar | 2015-07-06 17:45:06 -0700 |
|---|---|---|
| committer | azidar | 2015-07-14 11:29:55 -0700 |
| commit | 68f7ac42d01c88bcc0c77c919587618673658c76 (patch) | |
| tree | 054c3a2fdb710b187664fb9e7212046f12ec2ef2 /test/passes/expand-whens/two-when.fir | |
| parent | 8d6c83072cd60ecc376d81eb9a48ccf0f67e57f6 (diff) | |
Still partial commit, many tests pass. Many tests fail.
Diffstat (limited to 'test/passes/expand-whens/two-when.fir')
| -rw-r--r-- | test/passes/expand-whens/two-when.fir | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/test/passes/expand-whens/two-when.fir b/test/passes/expand-whens/two-when.fir index fb537303..b6c98263 100644 --- a/test/passes/expand-whens/two-when.fir +++ b/test/passes/expand-whens/two-when.fir @@ -5,31 +5,34 @@ circuit top : module top : cmem m :{ x : UInt<1>, y : UInt<1> }[2] wire i : UInt<1> + i := UInt(1) wire p : UInt<1> + p := UInt(1) wire q : { x : UInt<1>, y : UInt<1> } when p : wire p2 : UInt<1> - reg r5 : UInt<1> + p2 := UInt(1) when p2 : - accessor a = m[i] + infer accessor a = m[i] q := a - accessor b = m[i] + infer accessor b = m[i] b := q else : - accessor c = m[i] + infer accessor c = m[i] q := c - accessor d = m[i] + infer accessor d = m[i] d := q else : wire p3 : UInt<1> + p3 := UInt(1) when p3 : - accessor w = m[i] + infer accessor w = m[i] q := w - accessor x = m[i] + infer accessor x = m[i] x := q else : - accessor y = m[i] + infer accessor y = m[i] q := y - accessor z = m[i] + infer accessor z = m[i] z := q ; CHECK: Finished Expand Whens |
