lib.fifo: use proper clock domains in AsyncFIFO tests
authorRobin Ole Heinemann <robin.ole.heinemann@gmail.com>
Sat, 2 Jan 2021 23:13:46 +0000 (00:13 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:24:59 +0000 (15:24 +0000)
tests/test_lib_fifo.py

index bd5a9d9a60bc4ecc37c73ebb8b11b5e2ff113500..d276b3d17b4fa25da3231dd747da6deffc11236b 100644 (file)
@@ -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)