DivPipeCoreSetupStage,
DivPipeCoreCalculateStage,
DivPipeCoreFinalStage,
- )
+ )
from ieee754.fpcommon.getop import FPPipeContext
from ieee754.fpcommon.fpbase import FPFormat, FPNumBaseRecord
""" Create a ``DivPipeBaseData`` instance. """
self.pspec = pspec
width = pspec.width
- self.z = FPNumBaseRecord(width, False) # s and e carried: m ignored
+ # s and e carried: m ignored
+ self.z = FPNumBaseRecord(width, False, name="z")
self.out_do_z = Signal(reset_less=True)
self.oz = Signal(width, reset_less=True)
class DivPipeSetupStage(DivPipeBaseStage, DivPipeCoreSetupStage):
+ """ FIXME: add docs. """
def __init__(self, pspec):
self.pspec = pspec
class DivPipeCalculateStage(DivPipeBaseStage, DivPipeCoreCalculateStage):
+ """ FIXME: add docs. """
- def __init__(self, pspec, stage_index):
+ def __init__(self, pspec, stage_idx):
self.pspec = pspec
- DivPipeCoreCalculateStage.__init__(self, pspec.core_config, stage_index)
+ DivPipeCoreCalculateStage.__init__(self, pspec.core_config, stage_idx)
def ispec(self):
""" Get the input spec for this pipeline stage."""
class DivPipeFinalStage(DivPipeBaseStage, DivPipeCoreFinalStage):
+ """ FIXME: add docs. """
def __init__(self, pspec):
self.pspec = pspec
m = DivPipeCoreFinalStage.elaborate(self, platform)
self._elaborate(m, platform)
return m
-