lib.fifo: make fwft a keyword-only argument.

Because it accepts a boolean.
This commit is contained in:
whitequark 2019-09-12 19:36:45 +00:00
parent 1c091e67a4
commit b92e967b78
2 changed files with 4 additions and 4 deletions

View file

@ -58,7 +58,7 @@ class FIFOInterface:
w_attributes="",
r_attributes="")
def __init__(self, width, depth, fwft):
def __init__(self, width, depth, *, fwft):
self.width = width
self.depth = depth
self.fwft = fwft
@ -121,8 +121,8 @@ class SyncFIFO(Elaboratable, FIFOInterface):
""".strip(),
w_attributes="")
def __init__(self, width, depth, fwft=True):
super().__init__(width, depth, fwft)
def __init__(self, width, depth, *, fwft=True):
super().__init__(width, depth, fwft=fwft)
self.level = Signal.range(depth + 1)

View file

@ -46,7 +46,7 @@ class FIFOModel(Elaboratable, FIFOInterface):
Non-synthesizable first-in first-out queue, implemented naively as a chain of registers.
"""
def __init__(self, width, depth, fwft, rdomain, wdomain):
super().__init__(width, depth, fwft)
super().__init__(width, depth, fwft=fwft)
self.rdomain = rdomain
self.wdomain = wdomain