from nmutil.multipipe import CombMuxOutPipe
from nmutil.multipipe import PriorityCombMuxInPipe
-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):
return int(log(n) / log(2))
from nmigen.cli import main
from nmigen_add_experiment import FPADD
-from fpbase import FPOp
+from ieee754.fpcommon.fpbase import FPOp
class Adder:
from nmigen import Module, Signal, Cat
from nmigen.cli import main, verilog
-from fpbase import FPNumIn, FPNumOut, FPOp, Overflow, FPBase
+from ieee754.fpcommon.fpbase import FPNumIn, FPNumOut, FPOp, Overflow, FPBase
from nmutil.singlepipe import eq
from nmigen.lib.coding import PriorityEncoder
from math import log
-from fpbase import Trigger
+from ieee754.fpcommon.fpbase import Trigger
class FPGetSyncOpsMod:
from nmigen.cli import main, verilog
-from fpbase import FPNumIn, FPNumOut, FPOp, Overflow, FPBase, FPNumBase
-from fpbase import MultiShiftRMerge
+from ieee754.fpcommon.fpbase import FPNumIn, FPNumOut, FPOp, Overflow, FPBase, FPNumBase
+from ieee754.fpcommon.fpbase import MultiShiftRMerge
class ReservationStationRow:
from nmigen import Module, Signal
from nmigen.compat.sim import run_simulation
-from fpbase import FPNum
+from ieee754.fpcommon.fpbase import FPNum
class FPNumModShiftMulti:
def __init__(self, width):
from nmigen.compat.sim import run_simulation
-from fpbase import FPNumIn, FPNumOut, FPOpIn, FPOpOut, FPBase, FPState
+from ieee754.fpcommon.fpbase import FPNumIn, FPNumOut, FPOpIn, FPOpOut, FPBase, FPState
from nmutil.nmoperator import eq
from nmutil.singlepipe import SimpleHandshake, ControlBase
from test_buf_pipe import data_chain2, Test5
from nmigen import Module, Signal
from nmigen.compat.sim import run_simulation
-from fpbase import MultiShift, MultiShiftR, MultiShiftRMerge
+from ieee754.fpcommon.fpbase import MultiShift, MultiShiftR, MultiShiftRMerge
class MultiShiftModL:
def __init__(self, width):
from nmigen import Module, Signal, Cat, Elaboratable
from nmigen.cli import main, verilog
-from fpbase import FPNumBase
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPNumBase
+from ieee754.fpcommon.fpbase import FPState
from ieee754.fpcommon.denorm import FPSCData
from nmigen.cli import main, verilog
from math import log
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPState
from ieee754.fpcommon.postcalc import FPAddStage1Data
from .add0 import FPAddStage0Data
from nmutil.singlepipe import (StageChain, SimpleHandshake,
PassThroughStage)
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPState
from ieee754.fpcommon.denorm import FPSCData
from ieee754.fpcommon.postcalc import FPAddStage1Data
from .align import FPAddAlignSingleMod
from nmigen import Module, Signal
from nmigen.cli import main, verilog
-from fpbase import FPNumOut, FPNumIn, FPNumBase
-from fpbase import MultiShiftRMerge
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPNumOut, FPNumIn, FPNumBase
+from ieee754.fpcommon.fpbase import MultiShiftRMerge
+from ieee754.fpcommon.fpbase import FPState
from ieee754.fpcommon.denorm import FPSCData
from nmigen.cli import main, verilog
from math import log
-from fpbase import FPNumDecode
+from ieee754.fpcommon.fpbase import FPNumDecode
from nmutil.singlepipe import SimpleHandshake, StageChain
-from fpbase import FPState, FPID
+from ieee754.fpcommon.fpbase import FPState, FPID
from ieee754.fpcommon.getop import FPADDBaseData
from ieee754.fpcommon.denorm import (FPSCData, FPAddDeNormMod)
from nmigen.cli import main, verilog
from math import log
-from fpbase import FPOpIn, FPOpOut
-from fpbase import Trigger
+from ieee754.fpcommon.fpbase import FPOpIn, FPOpOut
+from ieee754.fpcommon.fpbase import Trigger
from nmutil.singlepipe import (StageChain, SimpleHandshake)
-from fpbase import FPState, FPID
+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 nmigen import Module, Elaboratable
from nmigen.cli import main, verilog
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPState
from .roundz import FPRoundData
from nmigen.cli import main, verilog
from math import log
-from fpbase import FPNumIn, FPNumOut, FPNumBase
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPNumIn, FPNumOut, FPNumBase
+from ieee754.fpcommon.fpbase import FPState
class FPSCData:
from functools import reduce
from nmutil.singlepipe import PrevControl, NextControl
-from pipeline import ObjectProxy
+from nmutil.pipeline import ObjectProxy
class MultiShiftR:
from nmigen.cli import main, verilog
from math import log
-from fpbase import FPNumIn, FPNumOut, FPOpIn, Overflow, FPBase, FPNumBase
-from fpbase import MultiShiftRMerge, Trigger
+from ieee754.fpcommon.fpbase import FPNumIn, FPNumOut, FPOpIn, Overflow, FPBase, FPNumBase
+from ieee754.fpcommon.fpbase import MultiShiftRMerge, Trigger
from nmutil.singlepipe import (ControlBase, StageChain, SimpleHandshake,
PassThroughStage, PrevControl)
from nmutil.multipipe import CombMuxOutPipe
from nmutil.multipipe import PriorityCombMuxInPipe
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPState
from nmutil import nmoperator
from nmutil.singlepipe import StageChain, SimpleHandshake
-from fpbase import FPState, FPID
+from ieee754.fpcommon.fpbase import FPState, FPID
from .postcalc import FPAddStage1Data
from .postnormalise import FPNorm1ModSingle
from .roundz import FPRoundMod
from nmigen import Module, Signal, Elaboratable
from nmigen.cli import main, verilog
-from fpbase import FPNumOut
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPNumOut
+from ieee754.fpcommon.fpbase import FPState
from .roundz import FPRoundData
from nmutil.singlepipe import Object
# 2013-12-12
from nmigen import Signal
-from fpbase import Overflow, FPNumBase
+from ieee754.fpcommon.fpbase import Overflow, FPNumBase
class FPAddStage1Data:
from nmigen.cli import main, verilog
from math import log
-from fpbase import Overflow, FPNumBase
-from fpbase import MultiShiftRMerge
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import Overflow, FPNumBase
+from ieee754.fpcommon.fpbase import MultiShiftRMerge
+from ieee754.fpcommon.fpbase import FPState
from .postcalc import FPAddStage1Data
from nmigen.cli import main, verilog
from math import log
-from fpbase import Overflow, FPNumBase
-from fpbase import MultiShiftRMerge
+from ieee754.fpcommon.fpbase import Overflow, FPNumBase
+from ieee754.fpcommon.fpbase import MultiShiftRMerge
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPState
class FPNormaliseModSingle:
from nmigen import Signal
from nmigen.cli import main, verilog
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPState
class FPPutZ(FPState):
from nmigen import Module, Signal, Elaboratable
from nmigen.cli import main, verilog
-from fpbase import FPNumBase
-from fpbase import FPState
+from ieee754.fpcommon.fpbase import FPNumBase
+from ieee754.fpcommon.fpbase import FPState
from .postnormalise import FPNorm1Data
from nmigen import Module, Signal, Const, Cat
from nmigen.cli import main, verilog
-from fpbase import FPNumIn, FPNumOut, FPOpIn, FPOpOut, Overflow, FPBase, FPState
+from ieee754.fpcommon.fpbase import FPNumIn, FPNumOut, FPOpIn, FPOpOut, Overflow, FPBase, FPState
from nmutil.singlepipe import eq
class Div:
from nmigen import Module, Signal, Cat, Mux, Array, Const
from nmigen.cli import main, verilog
-from fpbase import FPNumIn, FPNumOut, FPOp, Overflow, FPBase, FPState
+from ieee754.fpcommon.fpbase import FPNumIn, FPNumOut, FPOp, Overflow, FPBase, FPState
from fpcommon.getop import FPGetOp
from nmutil.singlepipe import eq
from collections.abc import Sequence
-from example_buf_pipe import eq, NextControl, PrevControl, ExampleStage
+from .nmoperator import eq
+from .iocontrol import NextControl, PrevControl
class MultiInControlBase(Elaboratable):
if __name__ == '__main__':
+ from nmutil.test.example_buf_pipe import ExampleStage
dut = PriorityCombMuxInPipe(ExampleStage)
vl = rtlil.convert(dut, ports=dut.ports())
with open("test_combpipe.il", "w") as f: