projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeb023a
)
lib.fifo: in FIFOInterface.read(), check readable on the right cycle.
author
whitequark
<whitequark@whitequark.org>
Tue, 22 Jan 2019 07:03:46 +0000
(07:03 +0000)
committer
whitequark
<whitequark@whitequark.org>
Tue, 22 Jan 2019 07:03:46 +0000
(07:03 +0000)
nmigen/lib/fifo.py
patch
|
blob
|
history
diff --git
a/nmigen/lib/fifo.py
b/nmigen/lib/fifo.py
index e26d3d43becf1bc7e65134baa2ae723f882a01d5..6e8e67926b4bfaeaaaf7c57b0f27069952cdec44 100644
(file)
--- a/
nmigen/lib/fifo.py
+++ b/
nmigen/lib/fifo.py
@@
-72,9
+72,9
@@
class FIFOInterface:
def read(self):
"""Read method for simulation."""
- assert (yield self.readable)
yield self.re.eq(1)
yield
+ assert (yield self.readable)
value = (yield self.dout)
yield self.re.eq(0)
return value