diff options
| author | azidar | 2015-05-02 12:20:41 -0700 |
|---|---|---|
| committer | azidar | 2015-05-02 12:20:41 -0700 |
| commit | 93ba0196dc2ba88e4e34346e5fbc105743a8eaa0 (patch) | |
| tree | 37faf9619e8c201910390cef5079914b8a137cc5 /test/chisel3 | |
| parent | 5c63bea388663b82eb1ea43464dfea055b10a79b (diff) | |
Now when expanding ConnectFrom/ToIndex, create a node for the index so it isn't duplicated for all the whens
Diffstat (limited to 'test/chisel3')
| -rw-r--r-- | test/chisel3/Mul.fir | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/test/chisel3/Mul.fir b/test/chisel3/Mul.fir index ec991197..46a8c9b9 100644 --- a/test/chisel3/Mul.fir +++ b/test/chisel3/Mul.fir @@ -1,12 +1,10 @@ ; RUN: firrtl -i %s -o %s.flo -x X -p c | tee %s.out | FileCheck %s ; CHECK: Done! - circuit Mul : module Mul : input x : UInt<2> - output z : UInt<4> - output a : UInt<4> input y : UInt<2> + output z : UInt<4> wire tbl : UInt<4>[16] tbl[0] := UInt<4>(0) @@ -25,8 +23,7 @@ circuit Mul : tbl[13] := UInt<4>(3) tbl[14] := UInt<4>(6) tbl[15] := UInt<4>(9) - node T_43 = shl(x, 2) - node ad = bit-or(Pad(T_43,?), Pad(y,?)) - a := Pad(ad,?) - accessor T_44 = tbl[ad] + node T_42 = shl(x, 2) + node T_43 = bit-or(Pad(T_42,?), Pad(y,?)) + accessor T_44 = tbl[T_43] z := Pad(T_44,?) |
