move ack to inside loop, seems to reduce time spent in InputGroup parallel test
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 15 Mar 2019 13:58:31 +0000 (13:58 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 15 Mar 2019 13:58:31 +0000 (13:58 +0000)
src/add/test_inputgroup.py

index bb68861cbbe2cb155e906e55e1800fa123bc6ad9..4c210c26e763554d633a6b5ac6214678ca662f05 100644 (file)
@@ -138,10 +138,10 @@ class InputTest:
             stb = yield dut.out_op.stb
             yield dut.out_op.ack.eq(0)
             while not stb:
+                yield dut.out_op.ack.eq(1)
                 yield
                 stb = yield dut.out_op.stb
 
-            yield dut.out_op.ack.eq(1)
             stb = yield dut.out_op.stb
             while stb:
                 yield