attempting to get compunit and test_pipe_caller unit tests
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Jan 2022 19:21:57 +0000 (19:21 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 21 Jan 2022 19:21:57 +0000 (19:21 +0000)
up and running again.
grrr

src/soc/fu/branch/test/test_pipe_caller.py
src/soc/fu/compunits/test/test_compunit.py

index 794d86da5a39ea1b5815750f3cfdca2be764d113..01da3ca8499ac27dc1cd90f52f50f52b6288269e 100644 (file)
@@ -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)
index 7885b9f74daea6bbb464ddec6e130f45edcbb225..58c381b8623e5592ad2feff0db4d6f211bd63006 100644 (file)
@@ -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)