when allow_overlap enabled do a manual wait until all FUs have
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 24 Nov 2021 17:44:36 +0000 (17:44 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 24 Nov 2021 17:44:36 +0000 (17:44 +0000)
entirely finished befor going on to read the regfile state
this really should be done with the DMI interface, which needs updating

src/soc/simple/test/test_runner.py

index eabff5857b17a4268a47beb377b5806ac5168beb..d33e8fbf6b299ca48ee135e5f1eee4b02126157f 100644 (file)
@@ -243,9 +243,12 @@ class HDLRunner(StateRunner):
             if terminated:
                 break
 
-        # wait until all settled
-        #while (yield self.issuer.any_busy):
-        #    yield
+        if self.dut.allow_overlap:
+            # wait until all settled
+            # XXX really this should be in DMI, which should in turn
+            # use issuer.any_busy to not send back "stopped" signal
+            while (yield self.issuer.any_busy):
+                yield
 
         if self.dut.allow_overlap:
             # get last state, at end of run