add missing data_i and data_o temporarily
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 30 Apr 2019 01:17:06 +0000 (02:17 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 30 Apr 2019 01:17:06 +0000 (02:17 +0100)
src/add/fpadd/statemachine.py
src/add/fpcommon/getop.py

index 94b5286978a962309785d66c6668db82f9a2ea19..4418b3fa8f07471b5b9067a6175f0306ad10c5d8 100644 (file)
@@ -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)
index 8cb9521bb3f0e9837588a9f7942dab45628b0b3e..3b93f4d142e7780001b6dad82ac99826977ea2b5 100644 (file)
@@ -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)