oops initialise Function Unit class with idx
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 4 Jul 2020 14:08:52 +0000 (15:08 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 4 Jul 2020 14:08:52 +0000 (15:08 +0100)
src/soc/fu/compunits/test/test_compunit.py

index 1d319ba6e9538bc0f7fcf45f74503867eceb4438..2cae1bebfc4b19faaeda04a5eb910d67f8e3ad93 100644 (file)
@@ -176,7 +176,7 @@ class TestRunner(FHDLTestCase):
             m.d.comb += cu.ad.go.eq(cu.ad.rel) # link addr-go direct to rel
             m.d.comb += cu.st.go.eq(cu.st.rel) # link store-go direct to rel
         else:
-            m.submodules.cu = cu = self.fukls()
+            m.submodules.cu = cu = self.fukls(0)
 
         comb += pdecode2.dec.raw_opcode_in.eq(instruction)
         sim = Simulator(m)