mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Merge pull request #118 from mithro/uart-sync
uart: Enable buffering the FIFO.
This commit is contained in:
commit
8c0982a1d5
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ def _get_uart_fifo(depth, sink_cd="sys", source_cd="sys"):
|
|||
fifo = stream.AsyncFIFO([("data", 8)], depth)
|
||||
return ClockDomainsRenamer({"write": sink_cd, "read": source_cd})(fifo)
|
||||
else:
|
||||
return stream.SyncFIFO([("data", 8)], depth)
|
||||
return stream.SyncFIFO([("data", 8)], depth, buffered=True)
|
||||
|
||||
|
||||
class UART(Module, AutoCSR):
|
||||
|
|
Loading…
Reference in a new issue