lib.fifo: make fwft a keyword-only argument.
Because it accepts a boolean.
This commit is contained in:
parent
1c091e67a4
commit
b92e967b78
|
@ -58,7 +58,7 @@ class FIFOInterface:
|
||||||
w_attributes="",
|
w_attributes="",
|
||||||
r_attributes="")
|
r_attributes="")
|
||||||
|
|
||||||
def __init__(self, width, depth, fwft):
|
def __init__(self, width, depth, *, fwft):
|
||||||
self.width = width
|
self.width = width
|
||||||
self.depth = depth
|
self.depth = depth
|
||||||
self.fwft = fwft
|
self.fwft = fwft
|
||||||
|
@ -121,8 +121,8 @@ class SyncFIFO(Elaboratable, FIFOInterface):
|
||||||
""".strip(),
|
""".strip(),
|
||||||
w_attributes="")
|
w_attributes="")
|
||||||
|
|
||||||
def __init__(self, width, depth, fwft=True):
|
def __init__(self, width, depth, *, fwft=True):
|
||||||
super().__init__(width, depth, fwft)
|
super().__init__(width, depth, fwft=fwft)
|
||||||
|
|
||||||
self.level = Signal.range(depth + 1)
|
self.level = Signal.range(depth + 1)
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ class FIFOModel(Elaboratable, FIFOInterface):
|
||||||
Non-synthesizable first-in first-out queue, implemented naively as a chain of registers.
|
Non-synthesizable first-in first-out queue, implemented naively as a chain of registers.
|
||||||
"""
|
"""
|
||||||
def __init__(self, width, depth, fwft, rdomain, wdomain):
|
def __init__(self, width, depth, fwft, rdomain, wdomain):
|
||||||
super().__init__(width, depth, fwft)
|
super().__init__(width, depth, fwft=fwft)
|
||||||
|
|
||||||
self.rdomain = rdomain
|
self.rdomain = rdomain
|
||||||
self.wdomain = wdomain
|
self.wdomain = wdomain
|
||||||
|
|
Loading…
Reference in a new issue