Forum Discussion
Altera_Forum
Honored Contributor
10 years agoHave a thorough read through the datasheet for the 'spi core' (https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/hb/qts/n2cpu_nii51011.pdf). This covers all aspects of the peripheral, what it should connect to, and how to control it.
You can also refer to the spi slave to avalon master bridge design example (https://www.altera.com/support/support-resources/design-examples/intellectual-property/embedded/nios-ii/exm-spi-bridge.html) on Altera's website. This does everything you require. Cheers, Alex