from nmutil.pipemodbase import PipeModBase
from ieee754.fpcommon.getop import FPADDBaseData
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
from ieee754.fpcommon.msbhigh import FPMSBHigh
from ieee754.fpcommon.exphigh import FPEXPHigh
return FPADDBaseData(self.in_pspec)
def ospec(self):
- return FPAddStage1Data(self.out_pspec, e_extra=True)
+ return FPPostCalcData(self.out_pspec, e_extra=True)
def elaborate(self, platform):
m = Module()
from ieee754.fpcommon.fpbase import Overflow
from ieee754.fpcommon.getop import FPADDBaseData
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
from ieee754.fpcommon.exphigh import FPEXPHigh
from ieee754.fpcommon.fpbase import FPNumDecode, FPNumBaseRecord
from nmutil.pipemodbase import PipeModBase
from ieee754.fpcommon.getop import FPADDBaseData
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
from ieee754.fpcommon.msbhigh import FPMSBHigh
from ieee754.fpcommon.fpbase import FPNumDecode, FPNumBaseRecord
return FPADDBaseData(self.in_pspec)
def ospec(self):
- return FPAddStage1Data(self.out_pspec, e_extra=True)
+ return FPPostCalcData(self.out_pspec, e_extra=True)
def elaborate(self, platform):
m = Module()
from nmutil.pipemodbase import PipeModBase
from ieee754.fpcommon.getop import FPADDBaseData
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
from ieee754.fpcommon.fpbase import FPNumDecode, FPNumBaseRecord
return FPADDBaseData(self.in_pspec)
def ospec(self):
- return FPAddStage1Data(self.out_pspec, e_extra=False)
+ return FPPostCalcData(self.out_pspec, e_extra=False)
def elaborate(self, platform):
m = Module()
from math import log
from nmutil.pipemodbase import PipeModBase
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
from ieee754.fpadd.add0 import FPAddStage0Data
return FPAddStage0Data(self.pspec)
def ospec(self):
- return FPAddStage1Data(self.pspec)
+ return FPPostCalcData(self.pspec)
def elaborate(self, platform):
m = Module()
FPAlignModSingle
addalign - FPAddAlignSingleAdd ispec FPSCData
--------- ospec FPAddStage1Data
+-------- ospec FPPostCalcData
StageChain: FPAddAlignSingleMod
FPAddStage0Mod
FPAddStage1Mod
-normpack - FPNormToPack ispec FPAddStage1Data
+normpack - FPNormToPack ispec FPPostCalcData
-------- ospec FPPackData
StageChain: Norm1ModSingle,
from ieee754.fpcommon.fpbase import FPState, FPID
from ieee754.fpcommon.getop import (FPGetOp, FPADDBaseData, FPGet2Op)
from ieee754.fpcommon.denorm import (FPSCData, FPAddDeNorm)
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
from ieee754.fpcommon.postnormalise import (FPNorm1Data,
FPNorm1Single, FPNorm1Multi)
from ieee754.fpcommon.roundz import (FPRoundData, FPRound)
from ieee754.fpcommon.getop import FPPipeContext
-class FPAddStage1Data:
+class FPPostCalcData:
def __init__(self, pspec, e_extra=False):
width = pspec.width
from ieee754.fpcommon.getop import FPPipeContext
from ieee754.fpcommon.msbhigh import FPMSBHigh
from ieee754.fpcommon.exphigh import FPEXPHigh
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
class FPNorm1Data:
super().__init__(pspec, "normalise_1")
def ispec(self):
- return FPAddStage1Data(self.pspec, e_extra=self.e_extra)
+ return FPPostCalcData(self.pspec, e_extra=self.e_extra)
def ospec(self):
return FPNorm1Data(self.pspec)
from nmigen.cli import main, verilog
from nmutil.pipemodbase import PipeModBase
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
from ieee754.div_rem_sqrt_rsqrt.div_pipe import DivPipeOutputData
def ospec(self):
# XXX REQUIRED. MUST NOT BE CHANGED. this is the format
# required for ongoing processing (normalisation, correction etc.)
- return FPAddStage1Data(self.pspec) # out to post-process
+ return FPPostCalcData(self.pspec) # out to post-process
def elaborate(self, platform):
m = Module()
divstages.append(DivPipeFinalStage(self.pspec))
# does conversion from DivPipeOutputData into
- # FPAddStage1Data format (bad name, TODO, doesn't matter),
+ # FPPostCalcData format (bad name, TODO, doesn't matter),
# so that post-normalisation and corrections can take over
divstages.append(FPDivStage2Mod(self.pspec))
...
pipediv5 - FPDivStageFinal ispec FPDivStage0Data
--------- ospec FPAddStage1Data
+-------- ospec FPPostCalcData
StageChain: DivPipeCalculateStage,
...
DivPipeFinalStage,
FPDivStage2Mod
-normpack - FPNormToPack ispec FPAddStage1Data
+normpack - FPNormToPack ispec FPPostCalcData
-------- ospec FPPackData
StageChain: Norm1ModSingle,
from ieee754.fpcommon.getop import FPPipeContext
from ieee754.fpcommon.msbhigh import FPMSBHigh
from ieee754.fpcommon.denorm import FPSCData
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
class FPAlignModSingle(PipeModBase):
from nmigen.cli import main, verilog
from nmutil.pipemodbase import PipeModBase
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
from ieee754.fpmul.mul0 import FPMulStage0Data
return FPMulStage0Data(self.pspec)
def ospec(self):
- return FPAddStage1Data(self.pspec)
+ return FPPostCalcData(self.pspec)
def elaborate(self, platform):
m = Module()
from nmutil.pipemodbase import PipeModBaseChain
from ieee754.fpcommon.denorm import FPSCData
-from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postcalc import FPPostCalcData
from ieee754.fpmul.mul0 import FPMulStage0Mod
from ieee754.fpmul.mul1 import FPMulStage1Mod
FPAlignModSingle
mulstages - FPMulStages ispec FPSCData
---------- ospec FPAddStage1Data
+--------- ospec FPPostCalcData
StageChain: FPMulStage0Mod
FPMulStage1Mod
-normpack - FPNormToPack ispec FPAddStage1Data
+normpack - FPNormToPack ispec FPPostCalcData
-------- ospec FPPackData
StageChain: Norm1ModSingle,