save mmu simulation to different gtkwave file in TestRunnerBase
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 19 Dec 2021 19:00:38 +0000 (19:00 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sun, 19 Dec 2021 19:00:38 +0000 (19:00 +0000)
src/openpower/test/runner.py

index 8987c3f13522e33038ed0ee88f06e49614b8a7a3..938fafe63d1e5f9ee0b1ed6e928ac302c9fe1e35 100644 (file)
@@ -469,8 +469,12 @@ class TestRunnerBase(FHDLTestCase):
                 'core.l0.pimem.bus__dat_we',
             ]
 
-        write_gtkw("issuer_simulator.gtkw",
-                   "issuer_simulator.vcd",
+        gtkname = "issuer_simulator"
+        if self.rom:
+            gtkname += "_mmu"
+
+        write_gtkw("%s.gtkw" % gtkname,
+                   "%s.vcd" % gtkname,
                    traces, styles, module='top.issuer')
 
         # add run of instructions
@@ -493,5 +497,5 @@ class TestRunnerBase(FHDLTestCase):
             sim.add_sync_process(wrap(wb_get(icache.ibus,
                                              default_mem, "ICACHE")))
 
-        with sim.write_vcd("issuer_simulator.vcd"):
+        with sim.write_vcd("%s.vcd" % gtkname):
             sim.run()