]
+if False:
+ pinbank1 = []
+ pinbank2 = []
+ for i in range(8):
+ pinbank1.append("X%d" % i)
+ pinbank2.append("Y%d" % i)
+ pins = ' '.join(pinbank1 + pinbank2)
+
+ # 16 GPIOs
+ _io.append( ("gpio", 16, Pins(pins), IOStandard("LVCMOS33")) )
+
pinsin = []
pinsout = []
for i in range(8):
from litedram.phy.model import SDRAMPHYModel
from litedram.phy.gensdrphy import GENSDRPHY, HalfRateGENSDRPHY
-from litex.soc.cores.gpio import GPIOInOut, GPIOIn, GPIOOut
+from litex.soc.cores.gpio import GPIOInOut, GPIOIn, GPIOOut, GPIOTristate
from litex.soc.cores.spi import SPIMaster
from litex.tools.litex_sim import sdram_module_nphases, get_sdram_phy_settings
self.submodules.gpio_out = GPIOIn(platform.request("gpio_out"))
self.add_csr("gpio_out")
+ if False:
+ self.submodules.gpio = GPIOTristate(platform.request("gpio"))
+ self.add_csr("gpio")
+
# SPI Master
self.submodules.spi_master = SPIMaster(
pads = platform.request("spi_master"),