format code
[ieee754fpu.git] / src / ieee754 / fpadd / test / test_fpadd_pipe_16.py
1 """ test of FPADDMuxInOut
2 """
3
4 from ieee754.fpadd.pipeline import FPADDMuxInOut
5 from ieee754.fpcommon.test.case_gen import run_pipe_fp
6 from ieee754.fpcommon.test import unit_test_half
7 from ieee754.fpadd.test.add_data16 import regressions
8
9 from sfpy import Float16
10 from operator import add
11
12
13 def test_pipe_fp16():
14 dut = FPADDMuxInOut(16, 4)
15 run_pipe_fp(dut, 16, "add", unit_test_half, Float16,
16 regressions, add, 10)
17
18
19 if __name__ == '__main__':
20 test_pipe_fp16()