soc/cores/uart/FT245: only use Asynchronous FIFO (Synchronous FIFO requires a softwar...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 23 Jun 2020 14:53:02 +0000 (16:53 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 23 Jun 2020 14:53:17 +0000 (16:53 +0200)
litex/soc/cores/uart.py

index f9ffeace9c2ddc8fc1d68bbed87c24bb5db9ca5b..201fdbb625ffb30ee2f25e24f5bdcaf77a7f1e33 100644 (file)
@@ -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)