From e7b30311fac9cb8ff5307d2a8f85c83b52cf9fbe Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 25 Jul 2020 15:20:36 +0100 Subject: [PATCH] move reset of rdmaskn to after "busy" --- src/soc/fu/compunits/test/test_compunit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/soc/fu/compunits/test/test_compunit.py b/src/soc/fu/compunits/test/test_compunit.py index e96f4c70..09c1beee 100644 --- a/src/soc/fu/compunits/test/test_compunit.py +++ b/src/soc/fu/compunits/test/test_compunit.py @@ -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 -- 2.30.2