User guide
Nios II IDE Help System
3. Establishes communication with the target board, and verifies that the expected
SOPC Builder system is configured in the FPGA. If the FPGA is not configured
properly, you should repeat the steps to configure the hardware.
4. Downloads the executable file (.elf) to memory on the target board.
5. Instructs the Nios II processor to begin executing the code.
After using the Run As command once, to run again click
Run on the toolbar.
Running on the ISS
To run using the ISS, perform these steps to run the executable code:
1. Right-click the tutorial project in the Nios II C/C++ Projects view.
2. Point to Run As, and then click
Nios II Instruction Set Simulator. After a
moment, output displays in the Console view. The count output appears very
slowly because there are delay loops (usleep function calls) in the code.
The ISS does not model the LED, seven-segment display, or LCD peripherals. Only the
console output displays in the Console view.
To analyze the output:
Program output appears on the development board and in the Console view of the Nios II
IDE. The Console view maintains a terminal I/O connection with a communication device
connected to the Nios II processor in the SOPC Builder system, such as a JTAG UART.
When the Nios II program writes to stdout or stderr, the Console view displays the text.
The Console view can also accept character input from the host keyboard, which is sent to
the processor and read as stdin. (The count_binary.c program does not read any input, so
typing in the Console view when running this project has no effect.)
To terminate the terminal connection to the target, click
Terminate in the Console
view. Terminating only disconnects the host from the target; the target processor
continues executing.
After successfully running the project, you are ready to learn how to use the debugger in the
next section of the tutorial.
Next: Debugging the Project
Previous: Building the Project
Related Nios II IDE Help Topics
About Running and Debugging Projects
Instruction Set Simulator (ISS)—Contains details on the capabilities and limitations of
the ISS.
Nios II C/C++ Projects View (Nios II C/C++ Perspective)—Contains details on options
available by right-clicking in the Nios II C/C++ Projects view.
Related Topics on the Web
AN 351: Simulating Nios II Embedded Processor Designs at
www.altera.com/literature/an/an351.pdf —Contains details on ModelSim simulation.
16