<d1b2>
<VA3TEC-Mikek-14362> I have been struggling with this for a few days now, I am working with the Deca Fpga board and I would like to know if there is some documentation on how to properly setup the GPIO pins to amaranth. I got the LEDS to work fine. Not sure if this is related? https://github.com/amaranth-lang/amaranth-boards/issues/128 Any working GPIO example would be great! Thanks! MikeK
ClownpieceFanOpp has joined #amaranth-lang
ClownpieceFanOpp has left #amaranth-lang [#amaranth-lang]
<josuah>
It has a list of resources, which can be requested the same way you did for the LED, but unlike the LEDs, there is no ready-made Resource for each GPIO, instead, there are Connectors
<josuah>
what you can do, then, is to create the Resource yourself, which is the perfect moment to group the related GPIO together in ports of your liking, and give them handy names
<josuah>
here you can also decide to reverse the signals (Pin() vs NPin()), declare subsignals ("yourconnector.thispart.input" for instance), or any other optional things
<josuah>
then, with the resource you created for yourself, you can intantiate that onto your project just like you did for the LEDs.