
Designing with Nios II
Exercise Manual

Exercises Designing With Nios II & SOPC Builder
Copyright © 2005 Altera Corporation
A-MNL-NIOSII-EX-05updtd
2
Lab 1
Creating a Nios II System

Exercises Designing With Nios II & SOPC Builder
Copyright © 2005 Altera Corporation
A-MNL-NIOSII-EX-05updtd
3
Hardware set up requirements:
� ByteBlaster, ByteBlaster II, Byte Blaster MV, or USB-Blaster connected between
computer and ByteBlaster connection on development board
� Power supply connected to the board
1. If it doesn’t exist already, create a directory on the C drive of your computer called
“altera_trn”. Copy the self-extracting zip file nios_II_lab.exe to that directory and double
click on it, and select unzip. This will unzip the lab files. Among these files is the partially
completed Quartus II project and a software folder that we will use today.
2. Start the Quartus II Software by double-clicking on the project file,
C:\altera_trn\Nios2\DE2Project.qpf..
3. Device family and pin assignments are OK in this Quartus II project. You can view them
in Assignments Menu.
4. Let’s now build our embedded system! Start SOPC Builder from Tools => SOPC
Builder… and provide the system name, niosII, when the next window pops up. You can
choose VHDL or Verilog (whichever you prefer) as the implementation language. The
blank SOPC builder window will open. Set Target to the particular dev kit you are using
(eg. Nios Development Board, Stratix EP1S10), and set the Clock frequency to 50 MHz.

Exercises Designing With Nios II & SOPC Builder
Copyright © 2005 Altera Corporation
A-MNL-NIOSII-EX-05updtd
4
5. From the left hand window pane select Nios II Processor and click Add. Select Nios II/s
for the processor core, and accept Embedded multiplies as the Hardware Multiply option.

Exercises Designing With Nios II & SOPC Builder
Copyright © 2005 Altera Corporation
A-MNL-NIOSII-EX-05updtd
5
6. Now, click on the JTAG Debug Module tab. Select the JTAG Target Connection
Download Level 1 option. This will provide us with all the debug options listed on that tab.
7. Click Finish. This will add it to the SOPC Builder system.
8. Rename the processor by right clicking on it and selecting Rename. Type in cpu and hit
enter.
评论0