Alchitry Forums
Any GPIO pins for SPI? - Printable Version

+- Alchitry Forums (https://forum.alchitry.com)
+-- Forum: Alchitry (https://forum.alchitry.com/forum-1.html)
+--- Forum: General Questions (https://forum.alchitry.com/forum-2.html)
+--- Thread: Any GPIO pins for SPI? (/thread-430.html)



Any GPIO pins for SPI? - 011010010110010001 - 06-23-2022

I want to establish a communication between a Raspberry Pi and an Alchitry Cu. I found [this](https://alchitry.com/serial-peripheral-interface-spi-verilog) and I wonder if any GPIO pins can be used for this, or they have to be dedicated pins. I mean, can I use any four pins for `ss`, `miso`, `mosi` and `sck`?


RE: Any GPIO pins for SPI? - alchitry - 07-05-2022

As with most things in the FPGA, any pins are useable. The only real exceptions to this are if you need special IO features like differential pairs or clock inputs. Clock inputs only need special pins if they are used to clock DFFs. The clock from SPI can easily be deciphered by DFFs clocked by your main system clock (as the example SPI peripheral does)