soc_core: uart: add a reset line to the UART
authorSean Cross <sean@xobs.io>
Thu, 5 Jul 2018 08:56:13 +0000 (16:56 +0800)
committerSean Cross <sean@xobs.io>
Thu, 5 Jul 2018 09:25:29 +0000 (17:25 +0800)
Enable resetting the UART by adding a ResetInserter to the UART.

The UART must be reset when resetting the softcore.

Signed-off-by: Sean Cross <sean@xobs.io>
litex/soc/integration/soc_core.py

index 50feab0ba6f0b6d67aaf0d4d60659a311c795c01..5af8f55fb2eee78b6a3f58a6f77ae01b4b68b442 100644 (file)
@@ -148,7 +148,8 @@ class SoCCore(Module):
                 self.submodules.uart  = uart.UARTStub()
             else:
                 self.submodules.uart_phy = uart.RS232PHY(platform.request(uart_name), clk_freq, uart_baudrate)
-                self.submodules.uart = uart.UART(self.uart_phy)
+                self.submodules.uart = ResetInserter()(uart.UART(self.uart_phy))
+
         #else:
         #    del self.soc_interrupt_map["uart"]