From: Luke Kenneth Casson Leighton Date: Fri, 21 Jan 2022 19:21:57 +0000 (+0000) Subject: attempting to get compunit and test_pipe_caller unit tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce5fc12d788e2e6a88cb9f3e071cbc8c0352c13b;p=soc.git attempting to get compunit and test_pipe_caller unit tests up and running again. grrr --- diff --git a/src/soc/fu/branch/test/test_pipe_caller.py b/src/soc/fu/branch/test/test_pipe_caller.py index 794d86da..01da3ca8 100644 --- a/src/soc/fu/branch/test/test_pipe_caller.py +++ b/src/soc/fu/branch/test/test_pipe_caller.py @@ -102,7 +102,7 @@ class TestRunner(unittest.TestCase): print(index) ins, code = instructions[index] - print("0x{:X}".format(ins & 0xffffffff)) + print("insn 0x{:X}".format(ins & 0xffffffff)) print(code) # ask the decoder to decode this binary data (endian'd) diff --git a/src/soc/fu/compunits/test/test_compunit.py b/src/soc/fu/compunits/test/test_compunit.py index 7885b9f7..58c381b8 100644 --- a/src/soc/fu/compunits/test/test_compunit.py +++ b/src/soc/fu/compunits/test/test_compunit.py @@ -344,7 +344,7 @@ class TestRunner(FHDLTestCase): m.d.comb += cu.ad.go_i.eq(cu.ad.rel_o) # link addr direct to rel m.d.comb += cu.st.go_i.eq(cu.st.rel_o) # link store direct to rel else: - m.submodules.cu = cu = self.fukls(0) + m.submodules.cu = cu = self.fukls(0, parent_pspec=None) l0 = None comb += pdecode2.dec.raw_opcode_in.eq(instruction)