1 """ test of FPDIVMuxInOut
4 from ieee754
.fpdiv
.pipeline
import FPDIVMuxInOut
5 from ieee754
.fpcommon
.test
.case_gen
import run_pipe_fp
6 from ieee754
.fpcommon
.test
import unit_test_half
7 from ieee754
.fpdiv
.test
.div_data16
import regressions
8 from ieee754
.div_rem_sqrt_rsqrt
.core
import DivPipeCoreOperation
11 from sfpy
import Float16
12 from operator
import truediv
as div
15 class TestDivPipe(unittest
.TestCase
):
16 # FIXME: AttributeError: 'PrevControl' object has no attribute 'valid_i'
17 @unittest.expectedFailure
18 def test_pipe_fp16(self
):
19 dut
= FPDIVMuxInOut(16, 4)
20 # don't forget to initialize opcode; don't use magic numbers
21 opcode
= int(DivPipeCoreOperation
.UDivRem
)
22 run_pipe_fp(dut
, 16, "div16", unit_test_half
, Float16
,
23 regressions
, div
, 10, opcode
=opcode
)
26 if __name__
== '__main__':