projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e3dccb
)
Remove wait state to demonstrate zero-delay reception.
author
Cesar Strauss
<cestrauss@gmail.com>
Mon, 6 Jul 2020 10:56:51 +0000
(07:56 -0300)
committer
Cesar Strauss
<cestrauss@gmail.com>
Mon, 6 Jul 2020 10:56:51 +0000
(07:56 -0300)
src/soc/experiment/alu_hier.py
patch
|
blob
|
history
diff --git
a/src/soc/experiment/alu_hier.py
b/src/soc/experiment/alu_hier.py
index d18f195ad5dbbe2b8987c403a5f9a75962eb75c4..fd5add205ad6a045757f5cf1d69572651450685e 100644
(file)
--- a/
src/soc/experiment/alu_hier.py
+++ b/
src/soc/experiment/alu_hier.py
@@
-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