PS GPIO Overlay

PYNQ Z1 board.

Are there any preloaded overlays that support: PS GPIO — Python productivity for Zynq (Pynq)

I know that preloaded overlays, enables inter-configurations for connecting buttons, switches, leds, io etc…

E.g logictools

logictools = LogicToolsOverlay('logictools.bit')
boolean_generator = logictools.boolean_generator

function_specs = ['D0 = PB0']

But I wonder if there is a preloaded overlay where one can use the link above to directly configure/write to D0, D1, etc…, trough:

from pynq import GPIO

output = GPIO(GPIO.get_gpio_pin(0), 'out')
input = GPIO(GPIO.get_gpio_pin(1), 'in')


The info about this section is more or less just “The PS GPIO need to be connected to something in an overlay before they can be used”.

Which board, and what are you trying to do?
You wouldn’t typically have (lots of) GPIO connected directly to IO in an FPGA. You are effectively bypassing the FPGA by doing this.
There is a example overlay for the PYNQ-Z1/Z2 here that has GPIO connected to buttons/switches/LEDs:
This notebook:


Sorry, updated. It’s PYNQ Z1 board.
Question stands regardless of one typically would or wouldn’t do.
As mentioned, e.g. logictools overlay (which is a builtin overlay if one uses the “official” SD card image) provides an easy way of connecting GPIO to buttons, switches, LEDs etc. But what I’m asking if there was a way of putting e.g. DIO0 high/low from PS without having to connect it to a button. That is python code to control the output… just like the example in the link. But the link assumes an overlay was first loaded, so I asked whether such an overlay is built in.

Anyway, I just had to build a bitstream which has access to 8 DIO pins as output and that serves my purpose.

OK, understood. No, there isn’t a built in overlay to do this, so building your own overlay was needed.