add extra arbitrary div unit test
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 16 Feb 2019 12:14:21 +0000 (12:14 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 16 Feb 2019 12:14:21 +0000 (12:14 +0000)
src/add/test_div.py

index 2945f5be1911a347e0e857b17f387181db02a749..6ca4c4afa5ee61086da1b35ab7a6fa6963e35793 100644 (file)
@@ -49,6 +49,7 @@ def testbench(dut):
     yield from check_case(dut, 0x40000000, 0x3F800000, 0x40000000)
     yield from check_case(dut, 0x3F800000, 0x40000000, 0x3F000000)
     yield from check_case(dut, 0x3F800000, 0x40400000, 0x3EAAAAAB)
+    yield from check_case(dut, 0x40400000, 0x41F80000, 0x3DC6318C)
 
 if __name__ == '__main__':
     dut = FPDIV(width=32)