From 4648db0c2ad8087aa61794c44939af32e707dd3a Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 13 Jan 2020 16:58:00 +0100 Subject: [PATCH] cores/uart/UARTInterface: remove connect method --- litex/soc/cores/uart.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/litex/soc/cores/uart.py b/litex/soc/cores/uart.py index a3d7122d..f8654c3b 100644 --- a/litex/soc/cores/uart.py +++ b/litex/soc/cores/uart.py @@ -23,12 +23,6 @@ class UARTInterface: self.sink = stream.Endpoint([("data", 8)]) self.source = stream.Endpoint([("data", 8)]) - def connect(self, other): - return [ - other.source.connect(self.sink), - self.source.connect(other.sink) - ] - # RS232 PHY ---------------------------------------------------------------------------------------- class RS232PHYInterface(UARTInterface): @@ -278,4 +272,7 @@ class UARTCrossover(UART): assert kwargs.get("phy", None) == None UART.__init__(self, **kwargs) self.submodules.xover = UART(tx_fifo_depth=2, rx_fifo_depth=2) - self.comb += self.connect(self.xover) + self.comb += [ + self.source.connect(self.xover.sink), + self.xover.source.connect(self.sink) + ] -- 2.30.2