From 5f9c4a4ab4e8e959ef9cf38291d0e60e25571270 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 6 Jan 2021 21:39:02 +0100 Subject: [PATCH] soc/cores/gpio: remove intermediate _pads signal. --- litex/soc/cores/gpio.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/litex/soc/cores/gpio.py b/litex/soc/cores/gpio.py index 952834b67..3de711dd5 100644 --- a/litex/soc/cores/gpio.py +++ b/litex/soc/cores/gpio.py @@ -53,12 +53,9 @@ class GPIOTristate(Module, AutoCSR): # # # - _pads = Signal(nbits) - self.comb += _pads.eq(pads) - for i in range(nbits): t = TSTriple() - self.specials += t.get_tristate(_pads[i]) + self.specials += t.get_tristate(pads[i]) self.comb += t.oe.eq(self._oe.storage[i]) self.comb += t.o.eq(self._out.storage[i]) self.specials += MultiReg(t.i, self._in.status[i])