Forum Discussion
Altera_Forum
Honored Contributor
17 years ago --- Quote Start --- Thanks for your reply. I understand what you are saying. However, the testbench provided at the end of "nios_system" (that's what I call it) is small and doesn't provide much insight to how to simulate the nios 2 processor and other Altera provided components. I guess I will try to figure this out by looking at other resources. If you know of any tutorial or links, please let me know. --- Quote End --- You can edit the testbench and compile the file. I usually add my own testbench code in the testbench portion. If you look at the file properly, you will see that there is a space provided in the simulation file for user's own code. There is space for both: writing a top-level entity and its test bench. Good thing is when you regenerate the simulation file in SOPC system, the user code (written in the user code space mentioned above) remains intact. The same is though not true if the user changes the "scripts"; when the simulation scripts are generated they wipe out any modifications done by the user.