uart: Enable buffering the FIFO.
On the iCE40 FPGA, adding buffering allows the SyncFIFO to be placed in block RAM rather than consuming a large amount of resources.
This commit is contained in:
parent
f916705313
commit
ba0dd5728e
|
@ -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 New Issue