start adding use of DivPipeInputData and DivPipeInterstageData
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 21 Jul 2019 14:48:09 +0000 (15:48 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 21 Jul 2019 14:48:09 +0000 (15:48 +0100)
src/ieee754/fpdiv/div0.py
src/ieee754/fpdiv/divstages.py

index c6e74ecf9476ec5b443c0ebdadd8d29541819885..30d92c6d0854f09d308a72ee7ea8709dd4d079ad 100644 (file)
@@ -46,8 +46,7 @@ class FPDivStage0Mod(Elaboratable):
         return FPSCData(self.pspec, False)
 
     def ospec(self):
-        # XXX TODO: replace with DivPipeCoreInputData, here
-        return FPDivStage0Data(self.pspec)
+        return DivPipeInputData(self.pspec)
 
     def process(self, i):
         return self.o
index c5f7683477f231c13eec20a20c35b08aaba7d461..2e38cd929fcddb38c9e30bcbe1864b4c127a3d9e 100644 (file)
@@ -98,13 +98,11 @@ class FPDivStagesIntermediary(FPState, SimpleHandshake):
 
     def ispec(self):
         # TODO - this is for FPDivStage1Mod
-        # XXX TODO: replace with "intermediary" (DivPipeInterstageData)
-        return FPDivStage0Data(self.pspec) # DIV ispec (loop)
+        return DivPipeInterstageData(self.pspec) # DIV ispec (loop)
 
     def ospec(self):
         # TODO - this is for FPDivStage1Mod
-        # XXX TODO: replace with "intermediary" (DivPipeInterstageData)
-        return FPDivStage0Data(self.pspec) # DIV ospec (loop)
+        return DivPipeInterstageData(self.pspec) # DIV ospec (loop)
 
     def setup(self, m, i):
         """ links module to inputs and outputs.