From 64589cfd2b7f0bc4be81d0cca237b2c5c8de8381 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 23 Jun 2020 16:53:02 +0200 Subject: [PATCH] soc/cores/uart/FT245: only use Asynchronous FIFO (Synchronous FIFO requires a software configuration). --- litex/soc/cores/uart.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/litex/soc/cores/uart.py b/litex/soc/cores/uart.py index f9ffeace..201fdbb6 100644 --- a/litex/soc/cores/uart.py +++ b/litex/soc/cores/uart.py @@ -178,14 +178,10 @@ def _get_uart_fifo(depth, sink_cd="sys", source_cd="sys"): return stream.SyncFIFO([("data", 8)], depth, buffered=True) def UARTPHY(pads, clk_freq, baudrate): - # FT245 async FIFO mode (baudrate ignored) + # FT245 Asynchronous FIFO mode (baudrate ignored) if hasattr(pads, "rd_n") and hasattr(pads, "wr_n"): from litex.soc.cores.usb_fifo import FT245PHYAsynchronous return FT245PHYAsynchronous(pads, clk_freq) - # FT245 sync FIFO mode (baudrate ignored) - if hasattr(pads, "rd_n") and hasattr(pads, "wr_n") and hasattr(pads, "oe_n"): - from litex.soc.cores.usb_fifo import FT245PHYSynchronous - return FT245PHYSynchronous(pads, clk_freq) # RS232 else: return RS232PHY(pads, clk_freq, baudrate) -- 2.30.2