From: Luke Kenneth Casson Leighton Date: Tue, 30 Apr 2019 01:17:06 +0000 (+0100) Subject: add missing data_i and data_o temporarily X-Git-Tag: ls180-24jan2020~1101 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea12b0eabe2185878b37f5e86ecd6fb44efbd7f3;p=ieee754fpu.git add missing data_i and data_o temporarily --- diff --git a/src/add/fpadd/statemachine.py b/src/add/fpadd/statemachine.py index 94b52869..4418b3fa 100644 --- a/src/add/fpadd/statemachine.py +++ b/src/add/fpadd/statemachine.py @@ -32,6 +32,7 @@ from fpadd.addstages import FPAddAlignSingleAdd 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): @@ -294,6 +295,8 @@ class FPADD(FPID): 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)) @@ -302,6 +305,7 @@ class FPADD(FPID): 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) diff --git a/src/add/fpcommon/getop.py b/src/add/fpcommon/getop.py index 8cb9521b..3b93f4d1 100644 --- a/src/add/fpcommon/getop.py +++ b/src/add/fpcommon/getop.py @@ -20,6 +20,7 @@ from fpbase import FPState 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)