debug and cleanup
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Nov 2021 17:41:25 +0000 (17:41 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Nov 2021 17:41:25 +0000 (17:41 +0000)
src/soc/simple/test/test_runner.py

index e49ee067c12e5abaab8cdd337ceb2e33bd966dfb..740857317c4c4aa0b9135f75fdd51de502737ab7 100644 (file)
@@ -219,7 +219,7 @@ class HDLRunner(StateRunner):
             index = (yield self.issuer.cur_state.pc) // 4
 
             terminated = yield self.issuer.dbg.terminated_o
-            print("terminated", terminated)
+            print("terminated", terminated, index, len(instructions))
 
             if index < len(instructions):
                 # Get HDL mem and state
@@ -230,8 +230,7 @@ class HDLRunner(StateRunner):
             if index >= len(instructions):
                 print ("index over, send dmi stop")
                 # stop at end
-                yield from set_dmi(dmi, DBGCore.CTRL,
-                                1<<DBGCtrl.STOP)
+                yield from set_dmi(dmi, DBGCore.CTRL, 1<<DBGCtrl.STOP)
                 yield
                 yield