use name of unit to write simulator/vcd file
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 6 Jun 2020 15:36:58 +0000 (16:36 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 6 Jun 2020 15:36:58 +0000 (16:36 +0100)
src/soc/fu/compunits/test/test_compunit.py

index 425d1f92cd096ac988cb20a9536601ca2cd8c1a3..d823340220c4efaf440e2abbad5d5a2c27e6cd44 100644 (file)
@@ -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()