From 36a833876ebabd062a1cc0dd21686e531aebadce Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 29 Mar 2019 14:42:08 +0000 Subject: [PATCH] use correct function in unit test --- src/add/test_state_add.py | 6 +++--- src/add/unit_test_single.py | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/add/test_state_add.py b/src/add/test_state_add.py index 1256774b..8d1ccf59 100644 --- a/src/add/test_state_add.py +++ b/src/add/test_state_add.py @@ -59,12 +59,12 @@ def testbench(dut): 0x5e8ef81, 0x5c75da81, 0x2b017] stimulus_b = [0xadd79efa, 0xC0000000, 0x1c800000, 0xc038ed3a, 0xb328cd45, 0x114f3db, 0x2f642a39, 0xff3807ab] - yield from run_test(dut, stimulus_a, stimulus_b, add, check_case) + yield from run_test(dut, stimulus_a, stimulus_b, add, get_case) count += len(stimulus_a) print (count, "vectors passed") - yield from run_corner_cases(dut, count, add) - yield from run_edge_cases(dut, count, add) + yield from run_corner_cases(dut, count, add, get_case) + yield from run_edge_cases(dut, count, add, get_case) if __name__ == '__main__': dut = FPADD(width=32, single_cycle=True) diff --git a/src/add/unit_test_single.py b/src/add/unit_test_single.py index c0601288..8def914a 100644 --- a/src/add/unit_test_single.py +++ b/src/add/unit_test_single.py @@ -141,7 +141,6 @@ def run_test(dut, stimulus_a, stimulus_b, op, get_case_fn): bf = Float32.from_bits(b) z = op(af, bf) expected_responses.append((z.get_bits(), mid)) - #print (af, bf, z) actual = yield from get_case_fn(dut, a, b, mid) actual_responses.append(actual) -- 2.30.2