38b1f3609a0f0715a113c9844b6eda8a011ed3ee
1 """ test of FPDIVMuxInOut
4 from ieee754
.fpdiv
.pipeline
import (FPDIVMuxInOut
,)
5 from ieee754
.fpcommon
.test
.fpmux
import runfp
7 from sfpy
import Float64
, Float32
, Float16
12 def test_pipe_sqrt_fp16():
13 dut
= FPDIVMuxInOut(16, 4)
14 runfp(dut
, 16, "test_fpsqrt_pipe_fp16", Float16
, sqrt
,
15 single_op
=True, opcode
=1, n_vals
=100)
17 def test_pipe_sqrt_fp32():
18 dut
= FPDIVMuxInOut(32, 4)
19 runfp(dut
, 32, "test_fpsqrt_pipe_fp32", Float32
, sqrt
,
20 single_op
=True, opcode
=1, n_vals
=100)
22 def test_pipe_sqrt_fp64():
23 dut
= FPDIVMuxInOut(64, 4)
24 runfp(dut
, 64, "test_fpsqrt_pipe_fp64", Float64
, sqrt
,
25 single_op
=True, opcode
=1, n_vals
=100)
27 if __name__
== '__main__':