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_32_16
import regressions
9 from sfpy
import Float32
, Float16
18 class TestFClassPipe(unittest
.TestCase
):
19 # FIXME: AttributeError: 'PrevControl' object has no attribute 'valid_i'
20 @unittest.expectedFailure
21 def test_pipe_fp32_16(self
):
22 dut
= FPCVTDownMuxInOut(32, 16, 4)
23 run_pipe_fp(dut
, 32, "fcvt", unit_test_single
, Float32
,
24 regressions
, fcvt_16
, 100, True)
27 if __name__
== '__main__':