add pspec to test_core.py
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 4 Jul 2020 20:01:04 +0000 (21:01 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 4 Jul 2020 20:01:04 +0000 (21:01 +0100)
src/soc/simple/test/test_core.py

index 322661e7ca4ba21c798b971f44da7f6f58151f67..904aa76d1cf19b22d2b2ddf661d91c02c0d17546 100644 (file)
@@ -164,7 +164,13 @@ class TestRunner(FHDLTestCase):
         instruction = Signal(32)
         ivalid_i = Signal()
 
-        m.submodules.core = core = NonProductionCore()
+        pspec = TestMemPspec(ldst_ifacetype='testpi',
+                             imem_ifacetype='',
+                             addr_wid=48,
+                             mask_wid=8,
+                             reg_wid=64)
+
+        m.submodules.core = core = NonProductionCore(pspec)
         pdecode2 = core.pdecode2
         l0 = core.l0