diff options
Diffstat (limited to 'test/passes/expand-whens/one-when.fir')
| -rw-r--r-- | test/passes/expand-whens/one-when.fir | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/passes/expand-whens/one-when.fir b/test/passes/expand-whens/one-when.fir new file mode 100644 index 00000000..78c59493 --- /dev/null +++ b/test/passes/expand-whens/one-when.fir @@ -0,0 +1,15 @@ +circuit top : + module top : + mem m : UInt(1)[2] + wire i : UInt(1) + wire p : UInt(1) + when p : + accessor a = m[i] + i := a + accessor b = m[i] + b := i + else : + accessor c = m[i] + i := c + accessor d = m[i] + d := i |
