From c29d74ff3526ef46febd0fe457f6d458a8a4a3ac Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 6 Jun 2020 16:36:58 +0100 Subject: [PATCH] use name of unit to write simulator/vcd file --- src/soc/fu/compunits/test/test_compunit.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/soc/fu/compunits/test/test_compunit.py b/src/soc/fu/compunits/test/test_compunit.py index 425d1f92..d8233402 100644 --- a/src/soc/fu/compunits/test/test_compunit.py +++ b/src/soc/fu/compunits/test/test_compunit.py @@ -199,7 +199,10 @@ class TestRunner(FHDLTestCase): sim, code) sim.add_sync_process(process) - with sim.write_vcd("simulator.vcd", "simulator.gtkw", + + name = self.funit.name.lower() + with sim.write_vcd("%s_simulator.vcd" % name, + "%s_simulator.gtkw" % name, traces=[]): sim.run() -- 2.30.2