compat.genlib.fifo: adjust _FIFOInterface shim to not require fwft=.
This commit is contained in:
parent
2c80f35de4
commit
eeb023a7f5
|
@ -1,5 +1,16 @@
|
|||
from ...lib.fifo import FIFOInterface as _FIFOInterface, \
|
||||
SyncFIFO, SyncFIFOBuffered
|
||||
from ...tools import deprecated
|
||||
from ...lib.fifo import FIFOInterface as NativeFIFOInterface, \
|
||||
SyncFIFO, SyncFIFOBuffered, AsyncFIFO, AsyncFIFOBuffered
|
||||
|
||||
|
||||
__all__ = ["_FIFOInterface", "SyncFIFO", "SyncFIFOBuffered"]
|
||||
__all__ = ["_FIFOInterface", "SyncFIFO", "SyncFIFOBuffered", "AsyncFIFO", "AsyncFIFOBuffered"]
|
||||
|
||||
|
||||
@deprecated("attribute `fwft` must be provided to FIFOInterface constructor")
|
||||
class CompatFIFOInterface(NativeFIFOInterface):
|
||||
def __init__(self, width, depth):
|
||||
super().__init__(width, depth, fwft=False)
|
||||
del self.fwft
|
||||
|
||||
|
||||
_FIFOInterface = CompatFIFOInterface
|
||||
|
|
Loading…
Reference in a new issue