diff options
| author | azidar | 2015-04-09 16:57:00 -0700 |
|---|---|---|
| committer | azidar | 2015-04-09 16:57:00 -0700 |
| commit | a604e0789a85d8b3c5d6def2f9860047f479b68a (patch) | |
| tree | ff2890d273f30155c52b610824a3ea632f2c12c6 /test/passes/jacktest/bundlewire.fir | |
| parent | 16b9cb55c7d3e546af7eee3528079c9ac9bb530b (diff) | |
Added more 'fake' tests. infer-widths now collects constraints
Diffstat (limited to 'test/passes/jacktest/bundlewire.fir')
| -rw-r--r-- | test/passes/jacktest/bundlewire.fir | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/test/passes/jacktest/bundlewire.fir b/test/passes/jacktest/bundlewire.fir index 0356597e..18e246a9 100644 --- a/test/passes/jacktest/bundlewire.fir +++ b/test/passes/jacktest/bundlewire.fir @@ -2,19 +2,16 @@ ; CHECK: Expand Whens -circuit BundleWire : - module BundleWire : - input in : { y : UInt(32), x : UInt(32) } - output outs : { y : UInt(32), x : UInt(32) }[4] - - wire coords : { y : UInt(32), x : UInt(32) }[4] - coords.0 := in - outs.0 := coords.0 - coords.1 := in - outs.1 := coords.1 - coords.2 := in - outs.2 := coords.2 - coords.3 := in - outs.3 := coords.3 +circuit TestLower : + module Inst : + input x : UInt + output y : UInt + module TestLower : + mem m : {data : { w : UInt , x : UInt } tag : { y : UInt, z : UInt }}[8] + wire index : UInt + accessor r = m[index] + + inst i of Inst + i.x := r ; CHECK: Finished Expand Whens |
