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)
def eq(self, rhs):
""" Assign member signals. """
return DivPipeCoreInputData.eq(self, rhs) + \
- DivPipeBaseData.eq(self, rhs)
+ DivPipeBaseData.eq(self, rhs)
class DivPipeInterstageData(DivPipeCoreInterstageData, DivPipeBaseData):
""" Assign member signals. """
#print (self, rhs)
return DivPipeCoreInterstageData.eq(self, rhs) + \
- DivPipeBaseData.eq(self, rhs)
+ DivPipeBaseData.eq(self, rhs)
class DivPipeOutputData(DivPipeCoreOutputData, DivPipeBaseData):
def eq(self, rhs):
""" Assign member signals. """
return DivPipeCoreOutputData.eq(self, rhs) + \
- DivPipeBaseData.eq(self, rhs)
+ DivPipeBaseData.eq(self, rhs)
class DivPipeBaseStage:
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):
self.pspec = pspec
- DivPipeCoreCalculateStage.__init__(self, pspec.core_config, stage_index)
+ DivPipeCoreCalculateStage.__init__(
+ self, pspec.core_config, stage_index)
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
-