from ieee754.div_rem_sqrt_rsqrt.core import DivPipeCoreOperation as DPCOp
-class FPDivStage0Mod(PipeModBase):
+class FPDivPreFPAdjust(PipeModBase):
""" DIV/SQRT/RSQRT "preparation" module.
adjusts mantissa and exponent (sqrt/rsqrt exponent must be even),
no *actual* processing occurs here: it is *purely* preparation work.
"""
def __init__(self, pspec):
- super().__init__(pspec, "div0")
+ super().__init__(pspec, "pre_fp_adjust")
def ispec(self):
return FPSCData(self.pspec, False)
from ieee754.div_rem_sqrt_rsqrt.div_pipe import DivPipeOutputData
-class FPDivStage2Mod(PipeModBase):
+class FPDivPostToFPFormat(PipeModBase):
""" Last stage of div: preparation for normalisation.
NOTE: this phase does NOT do ACTUAL DIV processing, it ONLY
"""
def __init__(self, pspec):
- super().__init__(pspec, "div1")
+ super().__init__(pspec, "post_to_fp_fmt")
def ispec(self):
return DivPipeOutputData(self.pspec) # Q/Rem in...
DivPipeCalculateStage,
DivPipeFinalStage,
)
-from ieee754.fpdiv.div0 import FPDivStage0Mod
-from ieee754.fpdiv.div2 import FPDivStage2Mod
+from ieee754.fpdiv.div0 import FPDivPreFPAdjust
+from ieee754.fpdiv.div2 import FPDivPostToFPFormat
class FPDivStagesSetup(PipeModBaseChain):
divstages = []
# Converts from FPSCData into DivPipeInputData
- divstages.append(FPDivStage0Mod(self.pspec))
+ divstages.append(FPDivPreFPAdjust(self.pspec))
# does 1 "convert" (actual processing) from DivPipeInputData
# into "intermediate" output (DivPipeInterstageData)
# does conversion from DivPipeOutputData into FPPostCalcData format
# so that post-normalisation and corrections can take over
- divstages.append(FPDivStage2Mod(self.pspec))
+ divstages.append(FPDivPostToFPFormat(self.pspec))
return divstages
pipediv0 - FPDivStagesSetup ispec FPSCData
-------- ospec DivPipeInterstageData
- StageChain: FPDivStage0Mod,
+ StageChain: FPDivPreFPAdjust,
DivPipeSetupStage,
DivPipeCalculateStage,
...
...
DivPipeCalculateStage,
DivPipeFinalStage,
- FPDivStage2Mod
+ FPDivPostToFPFormat
normpack - FPNormToPack ispec FPPostCalcData
-------- ospec FPPackData