From 7a91fb6b8573bea05d5a3332595c92b9e9b5424c Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Sun, 5 Jul 2020 19:57:14 -0300 Subject: [PATCH] Add some wait states in each process --- src/soc/experiment/alu_hier.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/soc/experiment/alu_hier.py b/src/soc/experiment/alu_hier.py index 582020e2..4afc491e 100644 --- a/src/soc/experiment/alu_hier.py +++ b/src/soc/experiment/alu_hier.py @@ -509,20 +509,31 @@ def test_alu_parallel(): def producer(): yield from send(5, 3, InternalOp.OP_ADD) + yield + yield yield from send(2, 3, InternalOp.OP_MUL_L64) yield from send(5, 3, InternalOp.OP_ADD, inv_a=1) + yield yield from send(5, 3, InternalOp.OP_NOP) + yield + yield yield from send(13, 2, InternalOp.OP_SHR) def consumer(): + yield result = yield from receive() assert (result == 8) result = yield from receive() assert (result == 6) + yield + yield result = yield from receive() assert (result == 65533) + yield result = yield from receive() assert (result == 2) + yield + yield result = yield from receive() assert (result == 3) -- 2.30.2