Visible to Intel only — GUID: qlf1638694859067
Ixiasoft
1. About This Document
2. About the Nios® V Embedded Processor
3. Nios® V Processor Hardware System Design with Intel® Quartus® Prime Pro Edition and Platform Designer
4. Nios® V Processor Software System Design
5. Nios® V Processor Configuration and Booting Solutions
6. Nios® V Processor - Using the MicroC/TCP-IP Stack
7. Nios® V Processor Debugging, Verifying, and Simulating
8. Nios® V Embedded Processor Design Handbook Archives
9. Document Revision History for the Nios® V Embedded Processor Design Handbook
5.1. Introduction
5.2. Linking Applications
5.3. Nios® V Processor Booting Methods
5.4. Introduction to Nios® V Processor Booting Methods
5.5. Nios® V Processor Booting from Configuration QSPI Flash
5.6. Nios V Processor Booting from On-Chip Memory (OCRAM)
5.7. Summary of Nios V Processor Vector Configuration and BSP Settings
7.4.1. Prerequisites
7.4.2. Setting Up and Generating Your Simulation Environment in Platform Designer
7.4.3. Creating Nios V Processor Software
7.4.4. Generating Memory Initialization File
7.4.5. Generating System Simulation Files
7.4.6. Running Simulation in the QuestaSim Simulator Using Command Line
Visible to Intel only — GUID: qlf1638694859067
Ixiasoft
7.4.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 95. Simulation Result