add pretty-print of MMU memory to be used for a TestRunner test
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 Dec 2021 15:48:37 +0000 (15:48 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 12 Dec 2021 15:48:37 +0000 (15:48 +0000)
src/openpower/test/runner.py

index 102d3dd58f26bc705b044d00c3c2b8d0681a3418..57ff213077328f526d0871a23b0f58ccd830b4a1 100644 (file)
@@ -16,6 +16,7 @@ related bugs:
 
 from nmigen import Module, ClockSignal
 from copy import copy
+from pprint import pprint
 
 # NOTE: to use cxxsim, export NMIGEN_SIM_MODE=cxxsim from the shell
 # Also, check out the cxxsim nmigen branch, and latest yosys from git
@@ -466,6 +467,8 @@ class TestRunnerBase(FHDLTestCase):
         # optionally, if a wishbone-based ROM is passed in, run that as an
         # extra emulated process
         if self.rom is not None:
+            print ("TestRunner with MMU ROM")
+            pprint (self.rom)
             dcache = hdlrun.issuer.core.fus.fus["mmu0"].alu.dcache
             icache = hdlrun.issuer.core.fus.fus["mmu0"].alu.icache
             default_mem = self.rom