Specifications
Related Information
Creating a System with Qsys
For more information, refer to the "Qsys Design Flow".
Preparing your Software for ModelSim
Creating the software projects is nearly the same as when you run the project on hardware. To prepare
your software for ModelSim simulation, perform the following steps:
1. Create your software project.
If you need to initialize a user-defined memory, you must take special steps to create memory initiali‐
zation files correctly.
2. Build your software project.
3. Create a ModelSim launch configuration with the following steps:
a. Right-click the application project name, point to Run As, and click Run Configurations. In the
Run Configurations dialog box, select Nios II ModelSim, and click the New button.
b. In the Main tab, ensure that the correct software project name and .elf file are selected.
c. Click Apply to save the launch configuration.
d. Click Close to close the dialog box.
If you are simulating multiple processors, create a launch configuration for each processor, and
create a launch group.
4. Open the run configuration you previously created. Click Run. The Nios II SBT for Eclipse performs a
make mem_init_generate command to create memory initialization files, and launches ModelSim.
5. At the ModelSim command prompt, type ldr.
Related Information
• Creating a Project on page 2-2
• Building the Project on page 2-4
• Generate Memory Initialization Files by the Legacy Method on page 2-31
• Multi-Core Launches on page 2-22
• Creating a Simple BSP on page 2-11
Potential Error Message
When you create the launch configuration, you might see the following error message:
SEVERE: The Quartus II project location has not been set in the ELF section. You can manually
override this setting in the launch configuration's ELF file 'Advanced' properties page.
Related Information
Creating a Simple BSP on page 2-11
Nios II GCC Tool Chain
In Nios II EDS version 13.1 (Nios II Classic), the Nios II GNU tool chain is upgraded from GCC 4.1.2 to
GCC 4.7.3. When upgrading to the new tool chain you should note the following changes:
• Nios II specific changes
• GCC changes and enhancements
Note:
2-34
Preparing your Software for ModelSim
NII5V2
2015.05.14
Altera Corporation
Getting Started with the Graphical User Interface
Send Feedback