diff --git a/litex/soc/cores/gpio.py b/litex/soc/cores/gpio.py index 288fc9a17..952834b67 100644 --- a/litex/soc/cores/gpio.py +++ b/litex/soc/cores/gpio.py @@ -45,6 +45,7 @@ class GPIOInOut(Module): class GPIOTristate(Module, AutoCSR): def __init__(self, pads): + assert isinstance(pads, Signal) nbits = len(pads) self._oe = CSRStorage(nbits, description="GPIO Tristate(s) Control.") self._in = CSRStatus(nbits, description="GPIO Input(s) Status.")