interconnect/stream/ClockDomainCrossing: Expose buffered parameter.
This commit is contained in:
parent
75bf668883
commit
ac3699770c
|
@ -242,7 +242,7 @@ class AsyncFIFO(_FIFOWrapper):
|
||||||
# ClockDomainCrossing ------------------------------------------------------------------------------
|
# ClockDomainCrossing ------------------------------------------------------------------------------
|
||||||
|
|
||||||
class ClockDomainCrossing(Module):
|
class ClockDomainCrossing(Module):
|
||||||
def __init__(self, layout, cd_from="sys", cd_to="sys", depth=None, with_common_rst=False):
|
def __init__(self, layout, cd_from="sys", cd_to="sys", depth=None, buffered=False, with_common_rst=False):
|
||||||
self.sink = Endpoint(layout)
|
self.sink = Endpoint(layout)
|
||||||
self.source = Endpoint(layout)
|
self.source = Endpoint(layout)
|
||||||
|
|
||||||
|
@ -275,7 +275,7 @@ class ClockDomainCrossing(Module):
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add Asynchronous FIFO
|
# Add Asynchronous FIFO
|
||||||
cdc = AsyncFIFO(layout, depth)
|
cdc = AsyncFIFO(layout, depth, buffered=buffered)
|
||||||
cdc = ClockDomainsRenamer({"write": cd_from, "read": cd_to})(cdc)
|
cdc = ClockDomainsRenamer({"write": cd_from, "read": cd_to})(cdc)
|
||||||
self.submodules += cdc
|
self.submodules += cdc
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue