From edfea0f2c82642de8fecfa7b371372f9cbd9eaf4 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 5 Jul 2019 11:46:53 +0100 Subject: [PATCH] add comments on where DivPipeCoreSetupStage would be used --- src/ieee754/fpdiv/div0.py | 1 + src/ieee754/fpdiv/divstages.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/ieee754/fpdiv/div0.py b/src/ieee754/fpdiv/div0.py index f3f6667e..a08f5a5d 100644 --- a/src/ieee754/fpdiv/div0.py +++ b/src/ieee754/fpdiv/div0.py @@ -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): diff --git a/src/ieee754/fpdiv/divstages.py b/src/ieee754/fpdiv/divstages.py index d62db0de..c9813e45 100644 --- a/src/ieee754/fpdiv/divstages.py +++ b/src/ieee754/fpdiv/divstages.py @@ -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)) -- 2.30.2