Remove wait state to demonstrate zero-delay reception.
authorCesar Strauss <cestrauss@gmail.com>
Mon, 6 Jul 2020 10:56:51 +0000 (07:56 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Mon, 6 Jul 2020 10:56:51 +0000 (07:56 -0300)
src/soc/experiment/alu_hier.py

index d18f195ad5dbbe2b8987c403a5f9a75962eb75c4..fd5add205ad6a045757f5cf1d69572651450685e 100644 (file)
@@ -544,9 +544,10 @@ def test_alu_parallel():
         # (-5) + 3 = -2
         result = yield from receive()
         assert (result == 65533)  # unsigned equivalent to -2
-        yield
         # 5 - 3 = 2
         # note that this is a zero-delay operation
+        # this, and the previous result, will be received back-to-back
+        # (check the output waveform to see this)
         result = yield from receive()
         assert (result == 2)
         yield