soc_core: fix uart stub
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Jan 2020 15:56:31 +0000 (16:56 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 13 Jan 2020 15:56:31 +0000 (16:56 +0100)
litex/soc/integration/soc_core.py

index 8bd25f2c9872a9f607fd738dac05e685af77b5c4..59faef811bd0c66af8545a53c043e196e36d9ed5 100644 (file)
@@ -242,7 +242,7 @@ class SoCCore(Module):
             if uart_name in ["stub", "stream"]:
                 self.submodules.uart = uart.UART()
                 if uart_name == "stub":
-                    self.comb += uart.sink.ready.eq(1)
+                    self.comb += self.uart.sink.ready.eq(1)
             elif uart_name == "crossover":
                 self.submodules.uart = uart.UARTCrossover()
             else: