Skip to content

Commit bfd9626

Browse files
wanda-phiwhitequark
authored andcommitted
lib.fifo: make fwft=True the default
1 parent e53d784 commit bfd9626

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

amaranth/lib/fifo.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class FIFOInterface:
6464
w_attributes="",
6565
r_attributes="")
6666

67-
def __init__(self, *, width, depth, fwft):
67+
def __init__(self, *, width, depth, fwft=True):
6868
if not isinstance(width, int) or width < 0:
6969
raise TypeError("FIFO width must be a non-negative integer, not {!r}"
7070
.format(width))
@@ -221,7 +221,7 @@ class SyncFIFOBuffered(Elaboratable, FIFOInterface):
221221
w_attributes="")
222222

223223
def __init__(self, *, width, depth):
224-
super().__init__(width=width, depth=depth, fwft=True)
224+
super().__init__(width=width, depth=depth)
225225

226226
self.level = Signal(range(depth + 1))
227227

@@ -306,7 +306,7 @@ def __init__(self, *, width, depth, r_domain="read", w_domain="write", exact_dep
306306
.format(depth)) from None
307307
else:
308308
depth_bits = 0
309-
super().__init__(width=width, depth=depth, fwft=True)
309+
super().__init__(width=width, depth=depth)
310310

311311
self.r_rst = Signal()
312312
self._r_domain = r_domain
@@ -483,7 +483,7 @@ def __init__(self, *, width, depth, r_domain="read", w_domain="write", exact_dep
483483
raise ValueError("AsyncFIFOBuffered only supports depths that are one higher "
484484
"than powers of 2; requested exact depth {} is not"
485485
.format(depth)) from None
486-
super().__init__(width=width, depth=depth, fwft=True)
486+
super().__init__(width=width, depth=depth)
487487

488488
self.r_rst = Signal()
489489
self._r_domain = r_domain

0 commit comments

Comments
 (0)