Visible to Intel only — GUID: qlf1638694859067
Ixiasoft
1. About the Nios® V Embedded Processor
2. Nios® V Processor Hardware System Design with Intel® Quartus® Prime Software and Platform Designer
3. Nios® V Processor Software System Design
4. Nios® V Processor Configuration and Booting Solutions
5. Nios® V Processor - Using the MicroC/TCP-IP Stack
6. Nios® V Processor Debugging, Verifying, and Simulating
7. Nios® V Processor — Remote System Update
8. Nios® V Processor — Using Custom Instruction
9. Nios® V Embedded Processor Design Handbook Archives
10. Document Revision History for the Nios® V Embedded Processor Design Handbook
4.1. Introduction
4.2. Linking Applications
4.3. Nios® V Processor Booting Methods
4.4. Introduction to Nios® V Processor Booting Methods
4.5. Nios® V Processor Booting from Configuration QSPI Flash
4.6. Nios® V Processor Booting from On-Chip Memory (OCRAM)
4.7. Nios® V Processor Booting from Tightly Coupled Memory (TCM)
4.8. Summary of Nios® V Processor Vector Configuration and BSP Settings
6.5.1. Prerequisites
6.5.2. Setting Up and Generating Your Simulation Environment in Platform Designer
6.5.3. Creating Nios V Processor Software
6.5.4. Generating Memory Initialization File
6.5.5. Generating System Simulation Files
6.5.6. Running Simulation in the QuestaSim Simulator Using Command Line
Visible to Intel only — GUID: qlf1638694859067
Ixiasoft
6.5.6. Running Simulation in the QuestaSim Simulator Using Command Line
You can launch the QuestaSim simulator using command vsim, in the Nios V Command Shell. The msim_setup.tcl script in the package generated creates alias commands for each step. For the list of commands, refer to the following table:
Macros | Description |
---|---|
dev_com | Compile device library files. |
com | Compiles the design files in correct order. |
elab | Elaborates the top-level design. |
elab_debug | Elaborates the top-level design with the novopt option. |
ld | Compiles all the design files and elaborates the top-level design. |
ld_debug | Compiles all the design files and elaborates the top-level design with the vopt option. |
Note: The vopt option is to run optimization before elaborating the top-level design in the simulator.
You can run the simulation in the QuestaSim simulator by performing the following steps.
- In the transcript window, change your working directory to mentor by using the following command.
cd <Project directory>/sys_tb/sys_tb/sim/mentor
- Copy the memory initialization file generated into the current path (Mentor folder)
file copy -force <Project directory>/ram.hex ./
- Run the msim_setup.tcl by using the following command.
do msim_setup.tcl
- Compiles all the design files and elaborates the top-level design with vopt option by using the following command
ld_debug
- Type run 2ms to start the simulation for 2 milliseconds.
At the end of the simulation, “Hello world, this is the Nios V/m cpu checking in …” message prints in the Transcript window. You can observe the simulation results from the waveform viewer as well. The following figure shows the simulation result.
Figure 108. Simulation Result