Reuse Cyclone IV fpga Pasive serial configuration pin for SPI

cyclonefpgaintel-fpgaspi

Can i reuse pins DATA0 & DCLK in my application as FPGA SPI interface after configuration (PS) has been completed ?

This are the dual purpose pin options:

enter image description here
enter image description here

if i set "use as Regular I/O" , i will be able to configure after power on the FPGA, once PS configuration is done , i could use this pins as SPI DATA and Clock …. but not reconfigure de FPGA until next boot…right?

Best Answer

These settings take effect AFTER configuration completes. So they will behave as configuration pins while the FPGA is being configured, then control will be turned over to your design after configuration is complete. I presume if you reset the whole FPGA back to an unconfigured state, the pins will revert back to configuration pins to reload the design. IOW, this should work fine and allow you to use the pins in your design to access the configuration SPI bus.