From d6b8036d20ce202d94ae862ecacaa20b306057fe Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 16 Feb 2019 17:19:28 +0000 Subject: [PATCH] add extra random div unit test cases --- src/add/test_div.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/add/test_div.py b/src/add/test_div.py index f0cacd34..cc0b2202 100644 --- a/src/add/test_div.py +++ b/src/add/test_div.py @@ -51,6 +51,10 @@ def testbench(dut): yield from check_case(dut, 0x3F800000, 0x40400000, 0x3EAAAAAB) yield from check_case(dut, 0x40400000, 0x41F80000, 0x3DC6318C) yield from check_case(dut, 0x41F9EB4D, 0x429A4C70, 0x3ECF52B2) + yield from check_case(dut, 0x7F7FFFFE, 0x70033181, 0x4EF9C4C8) + yield from check_case(dut, 0x7F7FFFFE, 0x70000001, 0x4EFFFFFC) + yield from check_case(dut, 0x7F7FFCFF, 0x70200201, 0x4ECCC7D5) + yield from check_case(dut, 0x70200201, 0x7F7FFCFF, 0x302003E2) if __name__ == '__main__': dut = FPDIV(width=32) -- 2.30.2