Merge branch 'master' of ssh://libre-riscv.org:922/ieee754fpu
authorAleksandar Kostovic <alexandar.kostovic@gmail.com>
Fri, 15 Mar 2019 15:12:34 +0000 (16:12 +0100)
committerAleksandar Kostovic <alexandar.kostovic@gmail.com>
Fri, 15 Mar 2019 15:12:34 +0000 (16:12 +0100)
src/add/test_inputgroup.py

index bb68861cbbe2cb155e906e55e1800fa123bc6ad9..e78090ea69fc4192422832ef9dbc04220fc67f33 100644 (file)
@@ -130,7 +130,7 @@ class InputTest:
             yield rs.stb.eq(0)
 
             # wait random period of time before queueing another value
-            for i in range(randint(0, 12)):
+            for i in range(randint(0, 8)):
                 yield
 
     def recv(self):
@@ -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