Forum Discussion
Altera_Forum
Honored Contributor
21 years agoYikes! You were following the Nios instructions but sound like you are using Nios II.
Because Nios II now has the IDE, the procedure for running modelsim is different. Maybe this is documented somewhere in the Nios II product (I'll ask our doc manager)? If not, here's the basic steps: 1. Open your project in Quartus. 2. Open SOPC Builder from Quartus. 3. Open the Nios II IDE from SOPC Builder. 4. Create a C/C++ project. 5. Select the build properties of the system library you just created and check the box that says modelsim. You must do this to build your elf so that slow startup code that isn't needed to run on modelsim is removed. 6. Build your project. 7. Look for "Run As" and select modelsim. 8. Modelsim should start and your simulated memories should contain your initial program contents. From here on, it is the same except that your printfs should show up in the IDE.