From bb8905fa5d34df2a0ca9306a47655d1dce16eeae Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 11 Mar 2020 12:06:15 +0100 Subject: [PATCH] cores/gpio: add CSR descriptions. --- litex/soc/cores/gpio.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/litex/soc/cores/gpio.py b/litex/soc/cores/gpio.py index fb2e3568..88f1fdce 100644 --- a/litex/soc/cores/gpio.py +++ b/litex/soc/cores/gpio.py @@ -10,21 +10,21 @@ from litex.soc.interconnect.csr import * class GPIOIn(Module, AutoCSR): def __init__(self, signal): - self._in = CSRStatus(len(signal)) + self._in = CSRStatus(len(signal), description="GPIO Input(s) Status.") self.specials += MultiReg(signal, self._in.status) # GPIO Output -------------------------------------------------------------------------------------- class GPIOOut(Module, AutoCSR): def __init__(self, signal): - self._out = CSRStorage(len(signal)) + self._out = CSRStorage(len(signal), description="GPIO Output(s) Control.") self.comb += signal.eq(self._out.storage) # GPIO Input/Output -------------------------------------------------------------------------------- class GPIOInOut(Module): def __init__(self, in_signal, out_signal): - self.submodules.gpio_in = GPIOIn(in_signal) + self.submodules.gpio_in = GPIOIn(in_signal) self.submodules.gpio_out = GPIOOut(out_signal) def get_csrs(self): @@ -35,9 +35,9 @@ class GPIOInOut(Module): class GPIOTristate(Module, AutoCSR): def __init__(self, pads): nbits = len(pads) - self._oe = CSRStorage(nbits) - self._in = CSRStatus(nbits) - self._out = CSRStorage(nbits) + self._oe = CSRStorage(nbits, description="GPIO Tristate(s) Control.") + self._in = CSRStatus(nbits, description="GPIO Input(s) Status.") + self._out = CSRStorage(nbits, description="GPIO Ouptut(s) Control.") # # # -- 2.30.2