1 """ test of FPCVTMuxInOut
4 from ieee754
.fcvt
.pipeline
import FPCVTDownMuxInOut
5 from ieee754
.fpcommon
.test
.case_gen
import run_pipe_fp
6 from ieee754
.fpcommon
.test
import unit_test_single
7 from ieee754
.fcvt
.test
.fcvt_data_64_16
import regressions
9 from sfpy
import Float64
, Float16
18 class TestFClassPipe(unittest
.TestCase
):
19 def test_pipe_fp64_16(self
):
20 dut
= FPCVTDownMuxInOut(64, 16, 4)
21 run_pipe_fp(dut
, 64, "fcvt", unit_test_single
, Float64
,
22 regressions
, fcvt_16
, 100, True)
25 if __name__
== '__main__':