update mmu testcase
authorTobias Platen <tplaten@posteo.de>
Wed, 24 Feb 2021 18:40:53 +0000 (19:40 +0100)
committerTobias Platen <tplaten@posteo.de>
Wed, 24 Feb 2021 18:40:53 +0000 (19:40 +0100)
src/soc/fu/mmu/test/test_issuer_mmu_rom.py

index b1d69f6c10b3f3938ad7581c2ccdb84d6ac3b8f9..640f8ed8f5f39c9a5a1474701235f7b330b5b0ba 100644 (file)
@@ -1,5 +1,5 @@
 from nmigen import Module, Signal
-from soc.simple.test.test_runner_mmu_rom import TestRunner
+from soc.simple.test.test_runner import TestRunner
 from soc.simulator.program import Program
 from soc.config.endian import bigendian
 import unittest
@@ -44,28 +44,25 @@ class MMUTestCase(TestAccumulatorBase):
 
         initial_regs = [0] * 32
         
+        # set process table
         prtbl = 0x1000000
         initial_regs[1] = prtbl
         
+        
 
         initial_sprs = {}
         self.add_case(Program(lst, bigendian),
                       initial_regs, initial_sprs)
 
 
-class RomDBG():
-    def __init__(self):
-        self.rom = default_mem
-        self.debug = open("/tmp/rom.log","w")
-        
-        # yield mmu.rin.prtbl.eq(0x1000000) # set process table -- SPR_PRTBL = 720
 
-rom_dbg = RomDBG()
 
 if __name__ == "__main__":
     unittest.main(exit=False)
     suite = unittest.TestSuite()
     suite.addTest(TestRunner(MMUTestCase().test_data, microwatt_mmu=True,
-                             rom=rom_dbg))
+                             rom=default_mem))
     runner = unittest.TextTestRunner()
     runner.run(suite)
+
+#  soc/simple/test/test_runner.py