Specifications

Altera Corporation 1–35
October 2007
Nios II Hardware Development Tutorial Creating the Example Design
Create a new Nios II C/C++ application project (see page 1–35).
Compile the project (see page 1–36).
To perform this section, you must have the SOPC Builder System File you
created in “Define the System in SOPC Builder” on page 1–15.
Create a New Nios II C/C++ Application Project
In this section you create a new Nios II C/C++ Application Project.
Perform the following steps:
1. Start the Nios II IDE. On Windows computers, click Start, point to
Programs, Altera, Nios II EDS <version>, and then click Nios II
IDE <version>. On Linux computers, run the executable file <Nios II
EDS install path>/bin/nios2-ide.
2. If the Workspace Launcher dialog box appears, click OK to accept
the default workspace location.
3. If you are not already in the Nios II C/C++ perspective, point to
Open Perspective on the Window menu, and then either click
Nios II C/C++, or click Other and then click Nios II C/C++.
4. On the File menu, point to New, and then click Nios II C/C++
Application to open the New Project wizard.
5. Click Browse under Select Target Hardware. The Select Target
Hardware dialog box opens.
6. Browse to <Design Files Directory>.
7. Select first_nios2_system.ptf.
8. Click Open. You return to the New Project wizard, and the SOPC
Builder System and CPU fields are now filled in.
9. Select Count Binary in the Select Project Template list. The Name
field automatically updates to count_binary_0 (see Figure 1–19).
10. Click Finish.