Fix detection of busy_o inside the monitor process
authorCesar Strauss <cestrauss@gmail.com>
Mon, 25 May 2020 15:07:15 +0000 (12:07 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Mon, 25 May 2020 15:07:15 +0000 (12:07 -0300)
Found the bug literally seconds after pushing...

src/soc/experiment/compalu_multi.py

index 5d671eab37f97caa6f86761780363778f60ab928..ac3981fa0e148a9328a80e5a3acd8e355cbcddfb 100644 (file)
@@ -404,8 +404,8 @@ class CompUnitParallelTest:
         print("Driver: busy_o =", busy_o)
 
     def monitor(self):
-        busy_o = yield self.dut.busy_o
         for i in range(10):
+            busy_o = yield self.dut.busy_o
             print("    Monitor: busy_o =", busy_o)
             yield