soc/cores/uart: set rx_fifo_rx_we to True on UARTCrossover
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 17 Jan 2020 05:32:00 +0000 (06:32 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 17 Jan 2020 05:32:00 +0000 (06:32 +0100)
litex/soc/cores/uart.py

index 99261f835bff8f02c8278b45223ac9a193405838..fc4ec27f2fb2af405b96478c15fd1798cc0c7299 100644 (file)
@@ -272,7 +272,7 @@ class UARTCrossover(UART):
     def __init__(self, **kwargs):
         assert kwargs.get("phy", None) == None
         UART.__init__(self, **kwargs)
-        self.submodules.xover = UART(tx_fifo_depth=2, rx_fifo_depth=2, rx_fifo_rx_we=False)
+        self.submodules.xover = UART(tx_fifo_depth=2, rx_fifo_depth=2, rx_fifo_rx_we=True)
         self.comb += [
             self.source.connect(self.xover.sink),
             self.xover.source.connect(self.sink)