Implement RFC 20: Deprecate non-FWFT FIFOs.

Tracking issue #875.
This commit is contained in:
Wanda 2023-10-24 21:55:51 +02:00 committed by Catherine
parent a60b9960c5
commit 4e4085a95b
3 changed files with 27 additions and 4 deletions

View file

@ -1,5 +1,7 @@
# amaranth: UnusedElaboratable=no
import warnings
from amaranth.hdl import *
from amaranth.asserts import *
from amaranth.sim import *
@ -256,10 +258,14 @@ class FIFOFormalCase(FHDLTestCase):
self.check_sync_fifo(SyncFIFO(width=8, depth=5, fwft=True))
def test_sync_not_fwft_pot(self):
self.check_sync_fifo(SyncFIFO(width=8, depth=4, fwft=False))
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
self.check_sync_fifo(SyncFIFO(width=8, depth=4, fwft=False))
def test_sync_not_fwft_npot(self):
self.check_sync_fifo(SyncFIFO(width=8, depth=5, fwft=False))
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
self.check_sync_fifo(SyncFIFO(width=8, depth=5, fwft=False))
def test_sync_buffered_pot(self):
self.check_sync_fifo(SyncFIFOBuffered(width=8, depth=4))