mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
soc/interconnect/stream: add support for buffered async fifo
This commit is contained in:
parent
bf3b4eec34
commit
0c687bc29e
1 changed files with 5 additions and 2 deletions
|
@ -106,8 +106,11 @@ class SyncFIFO(_FIFOWrapper):
|
|||
|
||||
|
||||
class AsyncFIFO(_FIFOWrapper):
|
||||
def __init__(self, layout, depth):
|
||||
_FIFOWrapper.__init__(self, fifo.AsyncFIFO, layout, depth)
|
||||
def __init__(self, layout, depth, buffered=False):
|
||||
_FIFOWrapper.__init__(
|
||||
self,
|
||||
fifo.AsyncFIFOBuffered if buffered else fifo.AsyncFIFO,
|
||||
layout, depth)
|
||||
|
||||
|
||||
class Multiplexer(Module):
|
||||
|
|
Loading…
Reference in a new issue