dear frens,
currrently i'm handling an fpga APEX20K board and just getting use to it..so i'm suppose to implement an SPI interface using the nios processor and the avalon switch fabric.at this point of time, i'm only familiar with VHDL and i was wondering if any1 has the source code in VHDL for a SPI interface.
i'm going to connect it to a 74HC595 chip(consisting shift register and a latch) and leds to show that the leds with all light up at 1 time, rather than ligthing up 1 by 1.anyway, its a simple demo, but i'm just not sure on the coding and would really appriciate any help.thanks.
If you are using Quartus package, For all the standard protocols, Altera is providing megacore functions. I think you can generate SPI core using megacore functions. You can get more information from Altera website.
Hi,
NIOS already has SPI core built in. You have to instantiate it from the SOPC builder. Please read the documentation for NIOS, you will get lots of information there.