add comments on where DivPipeCoreSetupStage would be used
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 5 Jul 2019 10:46:53 +0000 (11:46 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 5 Jul 2019 10:46:53 +0000 (11:46 +0100)
src/ieee754/fpdiv/div0.py
src/ieee754/fpdiv/divstages.py

index f3f6667eabaa74b6dec6d2f4b9112773d9ecb382..a08f5a5d651c881332c4839edea8b918fb9cc723 100644 (file)
@@ -12,6 +12,7 @@ from ieee754.fpcommon.denorm import FPSCData
 from ieee754.fpcommon.getop import FPPipeContext
 
 
+# TODO: delete (replace by DivPipeCoreInputData)
 class FPDivStage0Data:
 
     def __init__(self, width, pspec):
index d62db0de038a69ebe34aeb8573740c4baa7bbe2d..c9813e45bfe366f2b268f82eb94c8b0b5927c838 100644 (file)
@@ -76,6 +76,13 @@ class FPDivStages(FPState, SimpleHandshake):
 
         if self.begin: # XXX check this
             divstages.append(FPDivStage0Mod(self.width, self.pspec))
+            # XXX if FPDivStage0Mod is to be used to convert from
+            # FPSCData into DivPipeCoreInputData, rather than
+            # DivPipeCoreSetupStage conforming *to* FPSCData format,
+            # then DivPipeCoreSetupStage needs to be added here:
+            # vvvvvvv
+            # FIXME divstages.append(DivPipeCoreSetupStage(something))
+            # ^^^^^^^
 
         for count in range(self.n_stages): # number of combinatorial stages
             divstages.append(FPDivStage1Mod(self.width, self.pspec))