projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76efe86
)
lib.fifo: use proper clock domains in AsyncFIFO tests
author
Robin Ole Heinemann
<robin.ole.heinemann@gmail.com>
Sat, 2 Jan 2021 23:13:46 +0000
(
00:13
+0100)
committer
whitequark
<whitequark@whitequark.org>
Wed, 6 Jan 2021 01:05:46 +0000
(
01:05
+0000)
tests/test_lib_fifo.py
patch
|
blob
|
history
diff --git
a/tests/test_lib_fifo.py
b/tests/test_lib_fifo.py
index bd5a9d9a60bc4ecc37c73ebb8b11b5e2ff113500..d276b3d17b4fa25da3231dd747da6deffc11236b 100644
(file)
--- a/
tests/test_lib_fifo.py
+++ b/
tests/test_lib_fifo.py
@@
-312,16
+312,16
@@
class AsyncFIFOSimCase(FHDLTestCase):
for i in range(fill_in):
yield fifo.w_data.eq(i)
yield fifo.w_en.eq(1)
- yield
+ yield
Tick("write")
yield fifo.w_en.eq(0)
- yield
- yield
+ yield
Tick("write")
+ yield
Tick("write")
self.assertEqual((yield fifo.w_level), expected_level)
yield write_done.eq(1)
def read_process():
while not (yield write_done):
- yield
+ yield
Tick("read")
self.assertEqual((yield fifo.r_level), expected_level)
simulator = Simulator(fifo)