diff options
| author | azidar | 2015-04-28 17:32:19 -0700 |
|---|---|---|
| committer | azidar | 2015-04-28 17:32:19 -0700 |
| commit | 1644ed195522cd7343aaaa047e6669529907de9f (patch) | |
| tree | 250d34e3bf5616e01b4629ee6497cdd1ce9647b8 /test/chisel3/Stack.fir | |
| parent | d6d630e6dbe3e5dd3c335cc8bd65a81d9dcb0f5f (diff) | |
Instances are now male. Reworked lowering pass to be sane. chisel3/ModuleVec.fir doesn't work because incorrecly generated?
Diffstat (limited to 'test/chisel3/Stack.fir')
| -rw-r--r-- | test/chisel3/Stack.fir | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/chisel3/Stack.fir b/test/chisel3/Stack.fir index fbd198eb..a6f33189 100644 --- a/test/chisel3/Stack.fir +++ b/test/chisel3/Stack.fir @@ -2,41 +2,41 @@ ; CHECK: Done! circuit Stack : module Stack : - input push : UInt(1) - input pop : UInt(1) - input en : UInt(1) - output dataOut : UInt(32) - input dataIn : UInt(32) + input push : UInt<1> + input pop : UInt<1> + input en : UInt<1> + output dataOut : UInt<32> + input dataIn : UInt<32> - mem stack_mem : UInt(32)[16] - node T_30 = UInt(0, 5) - reg sp : UInt(5) - sp.init := T_30 - node T_31 = UInt(0, 32) - reg out : UInt(32) - out.init := T_31 + mem stack_mem : UInt<32>[16] + node T_30 = UInt<5>(0) + reg sp : UInt<5> + on-reset sp := T_30 + node T_31 = UInt<32>(0) + reg out : UInt<32> + on-reset out := T_31 when en : - node T_32 = UInt(16, 5) + node T_32 = UInt<5>(16) node T_33 = lt(sp, T_32) node T_34 = bit-and(push, T_33) when T_34 : accessor T_35 = stack_mem[sp] T_35 := dataIn - node T_36 = UInt(1, 1) + node T_36 = UInt<1>(1) node T_37 = add-wrap(sp, T_36) sp := T_37 else : - node T_38 = UInt(0, 1) + node T_38 = UInt<1>(0) node T_39 = gt(sp, T_38) node T_40 = bit-and(pop, T_39) when T_40 : - node T_41 = UInt(1, 1) + node T_41 = UInt<1>(1) node T_42 = sub-wrap(sp, T_41) sp := T_42 - node T_43 = UInt(0, 1) + node T_43 = UInt<1>(0) node T_44 = gt(sp, T_43) when T_44 : - node T_45 = UInt(1, 1) + node T_45 = UInt<1>(1) node T_46 = sub-wrap(sp, T_45) accessor T_47 = stack_mem[T_46] out := T_47 |
