Visible to Intel only — GUID: qlf1638694859067
Ixiasoft
1. About the Nios® V Embedded Processor
2. Nios® V Processor Hardware System Design with 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
2.1. Creating Nios® V Processor System Design with Platform Designer
2.2. Integrating Platform Designer System into the Quartus® Prime Project
2.3. Designing a Nios® V Processor Memory System
2.4. Clocks and Resets Best Practices
2.5. Assigning a Default Agent
2.6. Assigning a UART Agent for Printing
2.7. JTAG Signals
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.2.3.2.1. Enabling Signal Tap Logic Analyzer
6.2.3.2.2. Adding Signals for Monitoring and Debugging
6.2.3.2.3. Specifying Trigger Conditions
6.2.3.2.4. Assigning the Acquisition Clock, Sample Depth, and Memory Type, and Buffer Acquisition Mode
6.2.3.2.5. Compiling the Design and Programming the Target Device
6.6.1. Prerequisites
6.6.2. Setting Up and Generating Your Simulation Environment in Platform Designer
6.6.3. Creating Nios V Processor Software
6.6.4. Generating Memory Initialization File
6.6.5. Generating System Simulation Files
6.6.6. Running Simulation in the QuestaSim Simulator Using Command Line
Visible to Intel only — GUID: qlf1638694859067
Ixiasoft
6.6.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 114. Simulation Result