Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
719 Views

How simulate system with NIOS in Quartus?

Hello! I want to simulate my system, consists of spi, nios and pio(I build system in qsys). First I simulate only nios from eclips(using Modelsim), but when I decide to simulate system with nios in quartus. 

The task is to write one 32 bits number to spi and when write this word to pio. 

Is it possible to simulate system, including nios processor in quartus (because I couldn't set input signals to nios for spi) ?
0 Kudos
1 Reply
Highlighted
Valued Contributor III
11 Views

It is always possible to simulate Nios systems. You can proceed to generate testbench system in Qsys. Then, you can run modelsim via Eclipse. Do refer to 

https://www.altera.com/content/dam/altera-www/global/en_us/pdfs/literature/an/an351.pdf 

 

Now, the word "possible" is used because not every IP supports simulation due to the lack of simulation model. For example, the spi you instantiated in Qsys is just a wrapper that does not come with SPI model, which means that you won't be able to emulate SPI behavior in simulation. However, if you have your own SPI model that comply to standard SPI, you can hook that up and simulate your design.
0 Kudos