From 235cb1255e983a1e31c7e73ddaf51c836410e1d4 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 19 Dec 2021 19:00:38 +0000 Subject: [PATCH] save mmu simulation to different gtkwave file in TestRunnerBase --- src/openpower/test/runner.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/openpower/test/runner.py b/src/openpower/test/runner.py index 8987c3f1..938fafe6 100644 --- a/src/openpower/test/runner.py +++ b/src/openpower/test/runner.py @@ -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() -- 2.30.2