code-comments and dummy functions
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Sep 2021 12:49:52 +0000 (13:49 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Sep 2021 12:49:52 +0000 (13:49 +0100)
src/soc/simple/test/test_runner.py

index b16a68f3fea9de21dfe1f0fb78c32f8f9eecaf40..31c6b7b400ed6f5f3f5fdc35cb62c7deb124dc16 100644 (file)
@@ -325,6 +325,8 @@ class TestRunner(FHDLTestCase):
         intclk = ClockSignal("coresync")
         comb += intclk.eq(ClockSignal())
 
+        # TODO these should probably move into HDLRunner's constructor
+        # and become HDLRunner.pc_i and HDLRunner.svstate_i
         if self.run_hdl:
 
             pc_i = Signal(32)
@@ -343,6 +345,9 @@ class TestRunner(FHDLTestCase):
             ###### PREPARATION PHASE AT START OF RUNNING #######
             # StateRunner.setup_during_test()
 
+            if self.run_sim:
+                simrun.setup_during_test() # TODO, some arguments?
+
             if self.run_hdl:
                 # start in stopped
                 yield from set_dmi(hdlrun.dmi, DBGCore.CTRL, 1<<DBGCtrl.STOP)