soc/interconnect/stream/ClockDomainCrossing: Add a Buffer when same Clk Domains when buffered=True.
This commit is contained in:
parent
a36fbc86ea
commit
dc78c3f47b
|
@ -254,6 +254,14 @@ class ClockDomainCrossing(LiteXModule, DUID):
|
||||||
|
|
||||||
# Same Clk Domains.
|
# Same Clk Domains.
|
||||||
if cd_from == cd_to:
|
if cd_from == cd_to:
|
||||||
|
if buffered:
|
||||||
|
# Add Buffer.
|
||||||
|
self.buffer = ClockDomainsRenamer(cd_from)(Buffer(layout))
|
||||||
|
self.comb += [
|
||||||
|
self.sink.connect(self.buffer.sink),
|
||||||
|
self.buffer.source.connect(self.source),
|
||||||
|
]
|
||||||
|
else:
|
||||||
# No adaptation.
|
# No adaptation.
|
||||||
self.comb += self.sink.connect(self.source)
|
self.comb += self.sink.connect(self.source)
|
||||||
# Different Clk Domains.
|
# Different Clk Domains.
|
||||||
|
|
Loading…
Reference in New Issue