move reset of rdmaskn to after "busy"
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Jul 2020 14:20:36 +0000 (15:20 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 25 Jul 2020 14:20:36 +0000 (15:20 +0100)
src/soc/fu/compunits/test/test_compunit.py

index e96f4c70172c9b757f3a90cef58bd94d764e9cb7..09c1beee30dfb1d4d655887b4fc232c5c404bf43 100644 (file)
@@ -301,9 +301,6 @@ class TestRunner(FHDLTestCase):
                     print("after got outputs, rd_rel, wr_rel, wrmask: ",
                           bin(rd_rel_o), bin(wr_rel_o), bin(wrmask))
 
-                    # reset read-mask.  IMPORTANT when there are no operands
-                    yield cu.rdmaskn.eq(0)
-
                     # wait for busy to go low
                     while True:
                         busy_o = yield cu.busy_o
@@ -311,6 +308,9 @@ class TestRunner(FHDLTestCase):
                         if not busy_o:
                             break
                         yield
+
+                    # reset read-mask.  IMPORTANT when there are no operands
+                    yield cu.rdmaskn.eq(0)
                     yield
 
                     # debugging issue with branch