Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

Qsys SPI(3 Wire Serial) control

Hey, I am trying to build a SPI interface using the Qsys tool for a Cyclone IV I am using but I can't seem to figure out how to use the SPI (3 Wire Serial) IP in the catalog. It requires an Avalon MM control port input and when I provide it the output from the Merlin_Slave_Agent I cant figure out how to set the data output from the dozen or so inputs. A similar issue arises when I I try to make the Cyclone the SPI slave. Is there a document somewhere that outlines the spi_control_port inputs and how to send it data?

My ultimate goal is to have a SPI master that will send and read data any time a new data to send value is entered (or maybe a send bit is toggled). the data read from the slave would then be displayed on LEDs. Similarly, I want to have a SPI slave that will read and send data any time it's chip select is selected. the read data will then be displayed on a set of LEDs.

Thanks

3 Replies