projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45088f7
)
lib.fifo: fix simulation read/write methods to take only one cycle.
author
whitequark
<whitequark@whitequark.org>
Sat, 19 Jan 2019 01:37:58 +0000
(
01:37
+0000)
committer
whitequark
<whitequark@whitequark.org>
Sat, 19 Jan 2019 01:38:09 +0000
(
01:38
+0000)
nmigen/lib/fifo.py
patch
|
blob
|
history
diff --git
a/nmigen/lib/fifo.py
b/nmigen/lib/fifo.py
index d52c144a307cd4323e6f16a2030cb956936afd4b..9bf927f23f0eca42042c8854c1363d3bbf118ceb 100644
(file)
--- a/
nmigen/lib/fifo.py
+++ b/
nmigen/lib/fifo.py
@@
-63,11
+63,10
@@
class FIFOInterface:
def read(self):
"""Read method for simulation."""
assert (yield self.readable)
- value = (yield self.dout)
yield self.re.eq(1)
yield
+ value = (yield self.dout)
yield self.re.eq(0)
- yield
return value
def write(self, data):
@@
-77,7
+76,6
@@
class FIFOInterface:
yield self.we.eq(1)
yield
yield self.we.eq(0)
- yield
def _incr(signal, modulo):