aboutsummaryrefslogtreecommitdiff
path: root/test/chisel3/RegisterVecShift.fir
diff options
context:
space:
mode:
authorjackbackrack2015-04-28 18:25:40 -0700
committerjackbackrack2015-04-28 18:25:40 -0700
commit4b64107635c702352721a8fbb6ee71a455b9da54 (patch)
treee66da971c5ac7e2866db9371522d07d10b115053 /test/chisel3/RegisterVecShift.fir
parent2a4f374b19e10a1571fbd2a23b30e92c9179defd (diff)
parentc46608d92bd493fa33c3c5122341c716ca75ecb0 (diff)
merge
Diffstat (limited to 'test/chisel3/RegisterVecShift.fir')
-rw-r--r--test/chisel3/RegisterVecShift.fir50
1 files changed, 25 insertions, 25 deletions
diff --git a/test/chisel3/RegisterVecShift.fir b/test/chisel3/RegisterVecShift.fir
index 7fae4c49..5a184366 100644
--- a/test/chisel3/RegisterVecShift.fir
+++ b/test/chisel3/RegisterVecShift.fir
@@ -2,35 +2,35 @@
; CHECK: Done!
circuit RegisterVecShift :
module RegisterVecShift :
- input load : UInt(1)
- output out : UInt(4)
- input shift : UInt(1)
- input ins : UInt(4)[4]
+ input load : UInt<1>
+ output out : UInt<4>
+ input shift : UInt<1>
+ input ins : UInt<4>[4]
- reg delays : UInt(4)[4]
+ reg delays : UInt<4>[4]
when reset :
- node T_39 = UInt(0, 4)
- node T_40 = UInt(0, 4)
- node T_41 = UInt(0, 4)
- node T_42 = UInt(0, 4)
- wire T_43 : UInt(4)[4]
- T_43.0 := T_39
- T_43.1 := T_40
- T_43.2 := T_41
- T_43.3 := T_42
+ node T_39 = UInt<4>(0)
+ node T_40 = UInt<4>(0)
+ node T_41 = UInt<4>(0)
+ node T_42 = UInt<4>(0)
+ wire T_43 : UInt<4>[4]
+ T_43[0] := T_39
+ T_43[1] := T_40
+ T_43[2] := T_41
+ T_43[3] := T_42
delays := T_43
- node T_44 = UInt(5, 3)
+ node T_44 = UInt<3>(5)
node T_45 = bit-and(T_44, load)
- node T_46 = UInt(4, 3)
+ node T_46 = UInt<3>(4)
node T_47 = eq(T_45, T_46)
when T_47 :
- delays.0 := ins.0
- delays.1 := ins.1
- delays.2 := ins.2
- delays.3 := ins.3
+ delays[0] := ins[0]
+ delays[1] := ins[1]
+ delays[2] := ins[2]
+ delays[3] := ins[3]
else : when shift :
- delays.0 := ins.0
- delays.1 := delays.0
- delays.2 := delays.1
- delays.3 := delays.2
- out := delays.3
+ delays[0] := ins[0]
+ delays[1] := delays[0]
+ delays[2] := delays[1]
+ delays[3] := delays[2]
+ out := delays[3]