from .div0 import FPDivStage0Data
-class FPDivStage1Mod(FPState, Elaboratable):
+class FPDivStage2Mod(FPState, Elaboratable):
""" Second stage of div: preparation for normalisation.
"""
return m
-class FPDivStage1(FPState):
+class FPDivStage2(FPState):
def __init__(self, width, id_wid):
FPState.__init__(self, "divider_1")
- self.mod = FPDivStage1Mod(width)
+ self.mod = FPDivStage2Mod(width)
self.out_z = FPNumBaseRecord(width, False)
self.out_of = Overflow()
self.norm_stb = Signal()
from ieee754.fpcommon.denorm import FPSCData
from ieee754.fpcommon.pack import FPPackData
from ieee754.fpcommon.normtopack import FPNormToPack
-from .specialcases import FPDivSpecialCasesDeNorm
+from .specialcases import FPDIVSpecialCasesDeNorm
from .divstages import FPDivStages
class FPDIVBasePipe(ControlBase):
def __init__(self, width, id_wid):
ControlBase.__init__(self)
- self.pipe1 = FPDivSpecialCasesDeNorm(width, id_wid)
+ self.pipe1 = FPDIVSpecialCasesDeNorm(width, id_wid)
self.pipe2 = FPDivStages(width, id_wid)
self.pipe3 = FPNormToPack(width, id_wid)
from ieee754.fpcommon.test.fpmux import runfp
from sfpy import Float64, Float32, Float16
-from operator import div
+from operator import truediv as div
def test_pipe_fp16():
dut = FPDIVMuxInOut(16, 4)