from nmigen.compat.sim import run_simulation
from nmigen.cli import verilog, rtlil
-from inputgroup import InputGroup
+from ieee754.add.inputgroup import InputGroup
def testbench(dut):
from nmigen import Module, Signal
from nmigen.compat.sim import run_simulation
-from fadd_state import FPADD
+from ieee754.fpadd.fadd_state import FPADD
-from unit_test_single import (get_mantissa, get_exponent, get_sign, is_nan,
- is_inf, is_pos_inf, is_neg_inf,
- match, get_case, check_case, run_fpunit,
- run_edge_cases, run_corner_cases)
+from ieee754.fpcommon.test.unit_test_single import (
+ get_mantissa, get_exponent, get_sign, is_nan,
+ is_inf, is_pos_inf, is_neg_inf,
+ match, get_case, check_case, run_fpunit,
+ run_edge_cases, run_corner_cases)
def testbench(dut):
yield from check_case(dut, 0xFFFFFFFF, 0xC63B800A, 0xFFC00000)
from nmigen.compat.sim import run_simulation
from nmigen.cli import verilog
-from inputgroup import FPGetSyncOpsMod
+from ieee754.add.inputgroup import FPGetSyncOpsMod
def testbench(dut):
from nmigen import Module, Signal
from nmigen.back.pysim import Simulator, Passive
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from nmigen.cli import rtlil
from sfpy import Float32
from nmigen import Module, Signal
from nmigen.back.pysim import Simulator, Delay
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from ieee754.cordic.fpsin_cos import CORDIC
from ieee754.fpcommon.fpbase import FPNumBaseRecord
from nmigen import Module, Signal
from nmigen.back.pysim import Simulator, Delay
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from ieee754.cordic.sin_cos import CORDIC
from python_sin_cos import run_cordic
from nmigen import Module, Signal, Elaboratable, Mux
from nmigen.asserts import Assert, AnyConst
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from ieee754.fpcommon.fpbase import FPNumDecode, FPNumBaseRecord
from ieee754.fpcmp.fpcmp import FPCMPPipeMod
from nmigen import Module, Signal, Elaboratable, Mux
from nmigen.asserts import Assert, AnyConst
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from ieee754.fpcommon.fpbase import FPNumDecode, FPNumBaseRecord
from ieee754.fpmax.fpmax import FPMAXPipeMod
from ieee754.fpcommon.fpbase import (FPNumIn, FPNumOut, FPOpIn,
FPOpOut, Overflow, FPBase, FPState)
-from ieee754.fpcommon.getop import FPGetOp
+#from ieee754.fpcommon.getop import FPGetOp
from nmutil.nmoperator import eq
from nmigen.compat.sim import run_simulation
from operator import mul
-from fmul import FPMUL
+from ieee754.fpmul.fmul import FPMUL
import sys
import atexit
from random import randint
from random import seed
-from unit_test_double import (get_mantissa, get_exponent, get_sign, is_nan,
- is_inf, is_pos_inf, is_neg_inf,
- match, get_case, check_case, run_fpunit,
- run_edge_cases, run_corner_cases)
-
+from ieee754.fpcommon.test.unit_test_double import (
+ get_mantissa, get_exponent, get_sign, is_nan,
+ is_inf, is_pos_inf, is_neg_inf,
+ match, get_case, check_case, run_fpunit,
+ run_edge_cases, run_corner_cases)
def testbench(dut):
yield from check_case(dut, 0, 0, 0)
from nmigen import Module, Signal, Elaboratable
from nmigen.asserts import Assert, Assume
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from ieee754.fpcommon.fpbase import FPNumDecode, FPNumBaseRecord
from ieee754.fsgnj.fsgnj import FSGNJPipeMod
from nmigen import Module, Signal, Elaboratable, Mux
from nmigen.asserts import Assert, AnyConst
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from nmigen.cli import rtlil
from ieee754.part_cmp.experiments.eq_combiner import EQCombiner
from nmigen import Module, Signal, Elaboratable, Mux
from nmigen.asserts import Assert, AnyConst, Assume
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from nmigen.cli import rtlil
from ieee754.part_mul_add.partpoints import PartitionPoints
from nmigen import Module, Signal, Elaboratable, Mux, Cat
from nmigen.asserts import Assert, AnyConst, Assume
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from nmigen.cli import rtlil
from ieee754.part_mul_add.partpoints import PartitionPoints
from nmigen import Module, Signal, Elaboratable, Mux
from nmigen.asserts import Assert, AnyConst, Assume
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from nmigen.cli import rtlil
from ieee754.part_cmp.gt_combiner import GTCombiner
from nmigen import Module, Signal, Elaboratable, Mux, Cat
from nmigen.asserts import Assert, AnyConst
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from nmigen.cli import rtlil
from ieee754.part_mul_add.partpoints import PartitionPoints
from nmigen import Module, Signal, Elaboratable, Mux, Cat
from nmigen.asserts import Assert, AnyConst, Assume
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from nmigen.cli import rtlil
from ieee754.part_mul_add.partpoints import PartitionPoints
from nmigen import Module, Signal
from nmigen.back.pysim import Simulator, Delay, Settle
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from ieee754.part_mul_add.partpoints import PartitionPoints
from ieee754.part_shift.part_shift_dynamic import \
from nmigen import Module, Signal
from nmigen.back.pysim import Simulator, Delay, Settle
-from nmigen.test.utils import FHDLTestCase
+from nmutil.formaltest import FHDLTestCase
from ieee754.part_mul_add.partpoints import PartitionPoints
from ieee754.part_shift.part_shift_scalar import \