Forum Discussion
Altera_Forum
Honored Contributor
9 years agoUsing a SPI module.
I have a SPI module. Code: But how do I actually use it? In order to write to it I should load some data to SPI_Wr_Data and apply high signal to SPI_Wr_Start_Trig. When the trigger applied the da...
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- Suppose I have an SPI module. SPI_Wr_Data is a byte to send (8 bit). SPI_Wr_Start_Trig is a trigger to start byte transfer. How should I implement user logic to send several bytes? --- Quote End --- If you have no documentation - I suggest finding a core that does have documentation and probably a testbench. From a brief look at this code, wr_start_trig starts sending a single byte. So for several bytes you just assert wr_start_trig at the start of every byte.