class FPOpData:
def __init__(self, width, id_wid):
self.z = FPOpOut(width)
+ self.z.data_o = Signal(width)
self.mid = Signal(id_wid, reset_less=True)
def __iter__(self):
for i in range(rs_sz):
in_a = FPOpIn(width)
in_b = FPOpIn(width)
+ in_a.data_i = Signal(width)
+ in_b.data_i = Signal(width)
in_a.name = "in_a_%d" % i
in_b.name = "in_b_%d" % i
rs.append((in_a, in_b))
res = []
for i in range(rs_sz):
out_z = FPOpOut(width)
+ out_z.data_o = Signal(width)
out_z.name = "out_z_%d" % i
res.append(out_z)
self.res = Array(res)
class FPGetOpMod(Elaboratable):
def __init__(self, width):
self.in_op = FPOpIn(width)
+ self.in_op.data_i = Signal(width)
self.out_op = Signal(width)
self.out_decode = Signal(reset_less=True)