diff options
| author | azidar | 2015-07-13 16:22:43 -0700 |
|---|---|---|
| committer | azidar | 2015-07-14 11:29:55 -0700 |
| commit | 271e1bf5ed56847c1ce7d50bdb7f1db9ccc5ea55 (patch) | |
| tree | 8b1cdfcfc97a9710bd1bc5be973578f712cfa253 /test/passes/expand-whens/one-when.fir | |
| parent | 0bfb3618b654a4082cc2780887b3ca32e374f455 (diff) | |
Added tests for clocks. Added remove scope and special chars passes. Added tests. Made more tests pass
Diffstat (limited to 'test/passes/expand-whens/one-when.fir')
| -rw-r--r-- | test/passes/expand-whens/one-when.fir | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/passes/expand-whens/one-when.fir b/test/passes/expand-whens/one-when.fir index 4e6ea1e5..1332395c 100644 --- a/test/passes/expand-whens/one-when.fir +++ b/test/passes/expand-whens/one-when.fir @@ -3,16 +3,18 @@ ; CHECK: Expand Whens circuit top : module top : - cmem m : UInt<1>[2] + input clk : Clock + input reset : UInt<1> + cmem m : UInt<1>[2], clk wire i : UInt<1> wire p : UInt<1> wire j : UInt<1> j := UInt(1) - reg r : UInt<1> + reg r : UInt<1>, clk, reset p := j when p : - on-reset r := i + onreset r := i infer accessor a = m[i] i := a infer accessor b = m[i] @@ -27,7 +29,7 @@ circuit top : p := i when e : p := p - on-reset r := p + onreset r := p r := p |
