soc/cores/gpio: uniformize with others cores
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 29 Sep 2019 14:10:44 +0000 (16:10 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sun, 29 Sep 2019 14:10:44 +0000 (16:10 +0200)
litex/soc/cores/gpio.py

index b4ec50a3919c1efee43853c60a287b7107fd6da1..2102889827f9add8b64dc9e595c213541be6d032 100644 (file)
@@ -6,18 +6,21 @@ from migen.genlib.cdc import MultiReg
 
 from litex.soc.interconnect.csr import *
 
+# GPIO Input ----------------------------------------------------------------------------------------
 
 class GPIOIn(Module, AutoCSR):
     def __init__(self, signal):
         self._in = CSRStatus(len(signal))
         self.specials += MultiReg(signal, self._in.status)
 
+# GPIO Output --------------------------------------------------------------------------------------
 
 class GPIOOut(Module, AutoCSR):
     def __init__(self, signal):
         self._out = CSRStorage(len(signal))
         self.comb += signal.eq(self._out.storage)
 
+# GPIO Input/Output --------------------------------------------------------------------------------
 
 class GPIOInOut(Module):
     def __init__(self, in_signal, out_signal):