lib.fifo: reimplement SyncFIFOBuffered without inner SyncFIFO.

This commit is contained in:
Wanda 2023-10-24 21:46:14 +02:00 committed by Catherine
parent bfd962670d
commit a60b9960c5
2 changed files with 90 additions and 13 deletions

View file

@ -270,6 +270,9 @@ class FIFOFormalCase(FHDLTestCase):
def test_sync_buffered_potm1(self):
self.check_sync_fifo(SyncFIFOBuffered(width=8, depth=3))
def test_sync_buffered_one(self):
self.check_sync_fifo(SyncFIFOBuffered(width=8, depth=1))
def check_async_fifo(self, fifo):
# TODO: properly doing model equivalence checking on this likely requires multiclock,
# which is not really documented nor is it clear how to use it.