from multipipe import CombMuxOutPipe
from multipipe import PriorityCombMuxInPipe
-from fpcommon.getop import FPADDBaseData
-from fpcommon.denorm import FPSCData
-from fpcommon.pack import FPPackData
-from fpcommon.normtopack import FPNormToPack
-from fpadd.specialcases import FPAddSpecialCasesDeNorm
-from fpadd.addstages import FPAddAlignSingleAdd
+from ieee754.fpcommon.getop import FPADDBaseData
+from ieee754.fpcommon.denorm import FPSCData
+from ieee754.fpcommon.pack import FPPackData
+from ieee754.fpcommon.normtopack import FPNormToPack
+from ieee754.fpadd.specialcases import FPAddSpecialCasesDeNorm
+from ieee754.fpadd.addstages import FPAddAlignSingleAdd
def num_bits(n):
# 2013-12-12
from nmigen.cli import main, verilog
-from fpadd.statemachine import FPADDBase, FPADD
-from fpadd.pipeline import FPADDMuxInOut
+from ieee754.fpadd.statemachine import FPADDBase, FPADD
+from ieee754.fpadd.pipeline import FPADDMuxInOut
if __name__ == "__main__":
if True:
from fpbase import FPNumBase
from fpbase import FPState
-from fpcommon.denorm import FPSCData
+from ieee754.fpcommon.denorm import FPSCData
class FPAddStage0Data:
from math import log
from fpbase import FPState
-from fpcommon.postcalc import FPAddStage1Data
-from fpadd.add0 import FPAddStage0Data
+from ieee754.fpcommon.postcalc import FPAddStage1Data
+from .add0 import FPAddStage0Data
class FPAddStage1Mod(FPState, Elaboratable):
PassThroughStage)
from fpbase import FPState
-from fpcommon.denorm import FPSCData
-from fpcommon.postcalc import FPAddStage1Data
-from fpadd.align import FPAddAlignSingleMod
-from fpadd.add0 import FPAddStage0Mod
-from fpadd.add1 import FPAddStage1Mod
+from ieee754.fpcommon.denorm import FPSCData
+from ieee754.fpcommon.postcalc import FPAddStage1Data
+from .align import FPAddAlignSingleMod
+from .add0 import FPAddStage0Mod
+from .add1 import FPAddStage1Mod
class FPAddAlignSingleAdd(FPState, SimpleHandshake):
from fpbase import FPNumOut, FPNumIn, FPNumBase
from fpbase import MultiShiftRMerge
from fpbase import FPState
-from fpcommon.denorm import FPSCData
+from ieee754.fpcommon.denorm import FPSCData
class FPNumIn2Ops:
from multipipe import CombMuxOutPipe
from multipipe import PriorityCombMuxInPipe
-from fpcommon.getop import FPADDBaseData
-from fpcommon.denorm import FPSCData
-from fpcommon.pack import FPPackData
-from fpcommon.normtopack import FPNormToPack
-from fpadd.specialcases import FPAddSpecialCasesDeNorm
-from fpadd.addstages import FPAddAlignSingleAdd
+from ieee754.fpcommon.getop import FPADDBaseData
+from ieee754.fpcommon.denorm import FPSCData
+from ieee754.fpcommon.pack import FPPackData
+from ieee754.fpcommon.normtopack import FPNormToPack
+from .specialcases import FPAddSpecialCasesDeNorm
+from .addstages import FPAddAlignSingleAdd
from concurrentunit import ReservationStations, num_bits
from singlepipe import SimpleHandshake, StageChain
from fpbase import FPState, FPID
-from fpcommon.getop import FPADDBaseData
-from fpcommon.denorm import (FPSCData, FPAddDeNormMod)
+from ieee754.fpcommon.getop import FPADDBaseData
+from ieee754.fpcommon.denorm import (FPSCData, FPAddDeNormMod)
class FPAddSpecialCasesMod:
from singlepipe import (StageChain, SimpleHandshake)
from fpbase import FPState, FPID
-from fpcommon.getop import (FPGetOp, FPADDBaseData, FPGet2Op)
-from fpcommon.denorm import (FPSCData, FPAddDeNorm)
-from fpcommon.postcalc import FPAddStage1Data
-from fpcommon.postnormalise import (FPNorm1Data,
+from ieee754.fpcommon.getop import (FPGetOp, FPADDBaseData, FPGet2Op)
+from ieee754.fpcommon.denorm import (FPSCData, FPAddDeNorm)
+from ieee754.fpcommon.postcalc import FPAddStage1Data
+from ieee754.fpcommon.postnormalise import (FPNorm1Data,
FPNorm1Single, FPNorm1Multi)
-from fpcommon.roundz import (FPRoundData, FPRound)
-from fpcommon.corrections import FPCorrections
-from fpcommon.pack import (FPPackData, FPPackMod, FPPack)
-from fpcommon.normtopack import FPNormToPack
-from fpcommon.putz import (FPPutZ, FPPutZIdx)
-
-from fpadd.specialcases import (FPAddSpecialCases, FPAddSpecialCasesDeNorm)
-from fpadd.align import (FPAddAlignMulti, FPAddAlignSingle)
-from fpadd.add0 import (FPAddStage0Data, FPAddStage0)
-from fpadd.add1 import (FPAddStage1Mod, FPAddStage1)
-from fpadd.addstages import FPAddAlignSingleAdd
+from ieee754.fpcommon.roundz import (FPRoundData, FPRound)
+from ieee754.fpcommon.corrections import FPCorrections
+from ieee754.fpcommon.pack import (FPPackData, FPPackMod, FPPack)
+from ieee754.fpcommon.normtopack import FPNormToPack
+from ieee754.fpcommon.putz import (FPPutZ, FPPutZIdx)
+
+from .specialcases import (FPAddSpecialCases, FPAddSpecialCasesDeNorm)
+from .align import (FPAddAlignMulti, FPAddAlignSingle)
+from .add0 import (FPAddStage0Data, FPAddStage0)
+from .add1 import (FPAddStage1Mod, FPAddStage1)
+from .addstages import FPAddAlignSingleAdd
class FPOpData:
from nmigen import Module, Elaboratable
from nmigen.cli import main, verilog
from fpbase import FPState
-from fpcommon.roundz import FPRoundData
+from .roundz import FPRoundData
class FPCorrectionsMod(Elaboratable):
from singlepipe import StageChain, SimpleHandshake
from fpbase import FPState, FPID
-from fpcommon.postcalc import FPAddStage1Data
-from fpcommon.postnormalise import FPNorm1ModSingle
-from fpcommon.roundz import FPRoundMod
-from fpcommon.corrections import FPCorrectionsMod
-from fpcommon.pack import FPPackData, FPPackMod
+from .postcalc import FPAddStage1Data
+from .postnormalise import FPNorm1ModSingle
+from .roundz import FPRoundMod
+from .corrections import FPCorrectionsMod
+from .pack import FPPackData, FPPackMod
class FPNormToPack(FPState, SimpleHandshake):
from fpbase import FPNumOut
from fpbase import FPState
-from fpcommon.roundz import FPRoundData
+from .roundz import FPRoundData
from singlepipe import Object
from fpbase import FPNumBase
from fpbase import FPState
-from fpcommon.postnormalise import FPNorm1Data
+from .postnormalise import FPNorm1Data
class FPRoundData: