[Libre-soc-isa] [Bug 686] create Power ISA test API

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Sep 16 17:08:37 BST 2021


https://bugs.libre-soc.org/show_bug.cgi?id=686

--- Comment #49 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
commit 5018bfaed0328c4606f42a9feaccd58cb9fa731f (HEAD -> master, origin/master)
Author: Luke Kenneth Casson Leighton <lkcl at lkcl.net>
Date:   Thu Sep 16 17:06:27 2021 +0100

    moving teststate_check_regs written by klehman into openpower-isa

ok so you *should* now just be able to create a function which is
identical to the one in test_core.py

def check_regs(dut, sim, e, test, code):
    # create the two states and compare
    testdic = {'sim': sim, 'expected': e}
    yield from teststate_check_regs(dut, testdic, test, code)


we can then look at moving that function into a Base class
(one derived from FHDLTestCase) so that it doesn't get duplicated
100s of times.

one step at a time though

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libre-SOC-ISA mailing list