From: Luke Kenneth Casson Leighton Date: Sat, 25 Jul 2020 14:20:36 +0000 (+0100) Subject: move reset of rdmaskn to after "busy" X-Git-Tag: semi_working_ecp5~550 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e7b30311fac9cb8ff5307d2a8f85c83b52cf9fbe;p=soc.git move reset of rdmaskn to after "busy" --- 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