soc.simple.test: Rename setup_test_memory to avoid nosetest calling it jn-tests
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sun, 1 Aug 2021 17:08:50 +0000 (19:08 +0200)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Sun, 1 Aug 2021 17:08:50 +0000 (19:08 +0200)
src/soc/fu/compunits/test/test_compunit.py
src/soc/simple/test/test_core.py
src/soc/simple/test/test_microwatt.py
src/soc/simple/test/test_runner.py

index 11eb8b3c7f84e81ed1dc5f038e305d12d2c7c3e6..2ce9f2d0a3f140f55c8ba1a73cf45cca05fb5494 100644 (file)
@@ -137,7 +137,7 @@ def get_l0_mem(l0):  # BLECH! this is awful! hunting around through structures
     return mem.mem
 
 
-def setup_test_memory(l0, sim):
+def setup_tst_memory(l0, sim):
     mem = get_l0_mem(l0)
     print("before, init mem", mem.depth, mem.width, mem)
     for i in range(mem.depth):
@@ -199,7 +199,7 @@ class TestRunner(FHDLTestCase):
 
         # initialise memory
         if self.funit == Function.LDST:
-            yield from setup_test_memory(l0, sim)
+            yield from setup_tst_memory(l0, sim)
 
         pc = sim.pc.CIA.value
         index = pc//4
index 2f588f2600e71fc23c3f5b39e335cd259390a6fb..194c007594489869a57d0a103c810f13b15583e2 100644 (file)
@@ -25,7 +25,7 @@ from openpower.endian import bigendian
 from soc.simple.core import NonProductionCore
 from soc.experiment.compalu_multi import find_ok  # hack
 
-from soc.fu.compunits.test.test_compunit import (setup_test_memory,
+from soc.fu.compunits.test.test_compunit import (setup_tst_memory,
                                                  check_sim_memory)
 
 # test with ALU data and Logical data
@@ -278,7 +278,7 @@ class TestRunner(FHDLTestCase):
                 gen = program.generate_instructions()
                 instructions = list(zip(gen, program.assembly.splitlines()))
 
-                yield from setup_test_memory(l0, sim)
+                yield from setup_tst_memory(l0, sim)
                 yield from setup_regs(core, test)
 
                 index = sim.pc.CIA.value//4
index 3405bb4f3c44a8f94e2359afe0b9cead4a76423b..7e5013652907ef0509f759dac0c98630bf32a059 100644 (file)
@@ -15,7 +15,7 @@ from soc.config.test.test_loadstore import TestMemPspec
 from soc.simple.test.test_core import (setup_regs, check_regs,
                                        wait_for_busy_clear,
                                        wait_for_busy_hi)
-from soc.fu.compunits.test.test_compunit import (setup_test_memory,
+from soc.fu.compunits.test.test_compunit import (setup_tst_memory,
                                                  check_sim_memory,
                                                  get_l0_mem)
 
@@ -112,7 +112,7 @@ class TestRunner(FHDLTestCase):
                 # blech!  put the same listing into the data memory
                 data_mem = get_l0_mem(l0)
                 yield from setup_i_memory(data_mem, pc, instructions)
-                # yield from setup_test_memory(l0, sim)
+                # yield from setup_tst_memory(l0, sim)
                 yield from setup_regs(core, test)
 
                 yield pc_i.eq(pc)
index fee846178e15260657f8b4dc5816dde6f842579e..c7bc9a11e040362dd759b6a0da31e91340b9d1d9 100644 (file)
@@ -28,7 +28,7 @@ from soc.config.test.test_loadstore import TestMemPspec
 from soc.simple.test.test_core import (setup_regs, check_regs,
                                        wait_for_busy_clear,
                                        wait_for_busy_hi)
-from soc.fu.compunits.test.test_compunit import (setup_test_memory,
+from soc.fu.compunits.test.test_compunit import (setup_tst_memory,
                                                  check_sim_memory)
 from soc.debug.dmi import DBGCore, DBGCtrl, DBGStat
 from nmutil.util import wrap
@@ -230,7 +230,7 @@ class TestRunner(FHDLTestCase):
                     counter = 0  # test to pause/start
 
                     yield from setup_i_memory(imem, pc, instructions)
-                    yield from setup_test_memory(l0, sim)
+                    yield from setup_tst_memory(l0, sim)
                     yield from setup_regs(pdecode2, core, test)
 
                     # set PC and SVSTATE