Forum Discussion
Altera_Forum
Honored Contributor
13 years agoThe SPI-to-Avalon-MM interface is not very well documented. Its very similar to the JTAG-to-Avalon-MM interface - JTAG serial transactions are very similar to SPI serial transactions - the protocol used over the two interfaces is identical.
http://www.alterawiki.com/wiki/using_the_usb-blaster_as_an_sopc/qsys_avalon-mm_master_tutorial here's the low-level details you need http://www.ovro.caltech.edu/~dwh/correlator/pdf/altera_jtag_to_avalon_analysis.pdf http://www.ovro.caltech.edu/~dwh/correlator/pdf/altera_jtag_to_avalon_analysis.zip Create a testbench with the SPI-to-Avalon-MM component, and create SPI byte transactions with the protocol defined in this document. You'll see the IDLE codes being returned over SPI, and see how to form packets. The Tcl scripts in the above documents show how to create these packets from quartus_stp. Your SPI code would need to do the same. Cheers, Dave