127
can write to the PIO data register, turning the LED on and off. The PIO is just one of many SOPC
peripherals that you can use in a system. To learn about the PIO core and other embedded peripheral
cores, refer to Quartus II Version 10.1 Handbook Volume 5: Embedded Peripherals.
When developing your own designs, you can use the software functions and resources that are
provided with the Nios II HAL. Refer to the Nios II Software Developer’s Handbook for extensive
documentation on developing your own Nios II processor-based software applications.
7
7
.
.
8
8
D
D
e
e
b
b
u
u
g
g
g
g
i
i
n
n
g
g
t
t
h
h
e
e
A
A
p
p
p
p
l
l
i
i
c
c
a
a
t
t
i
i
o
o
n
n
Before you can debug a project in the NIOS II IDE, you need to create a debug configuration that
specifies how to run the software. To set up a debug configuration, perform the following steps:
1. In the
hello_world.c
, double-click the front of the line where you would like to set breakpoint,
as shown in
Figure 7-60
.
Figure 7-60 Set Breakpoint
2. To debug your application, right-click the application,
hello_world_0,
and select
Debug as >
Nios II Hardware
.
3. If the
Confirm Perspective Switch
message box appears, click
Yes
.
After a moment, the main() function appears in the editor. A blue arrow next to the first line of code
indicates that execution stopped at that line.
Содержание De0-Nano
Страница 1: ...1 ...
Страница 4: ...4 9 3 Revision History 155 9 4 Copyright Statement 155 ...
Страница 44: ...44 Figure 6 5 Browse to find the location Figure 6 6 There is no need to test the driver ...
Страница 90: ...90 Figure 7 14 Add NIOS II Processor ...
Страница 91: ...91 Figure 7 15 Nios II Processor 9 Click Finish to return to main window as shown in Figure 7 16 ...
Страница 93: ...93 Figure 7 17 Rename the CPU 1 Figure 7 18 Rename the CPU 2 ...
Страница 98: ...98 Figure 7 23 Add On Chip Memory ...
Страница 100: ...100 Figure 7 25 Update Total memory size ...
Страница 102: ...102 Figure 7 28 Update CPU settings ...
Страница 104: ...104 Figure 7 30 Add PIO ...
Страница 106: ...106 Figure 7 32 PIO 21 Rename pio_0 to pio_led as shown in Figure 7 33 Figure 7 33 Rename PIO ...
Страница 113: ...113 Figure 7 43 Input verilog Text Figure 7 44 Open DE0_NANO_SOPC v ...
Страница 146: ...146 Figure 8 16 Display Progress and Result Information for the SDRAM Demonstration ...
Страница 150: ...150 Figure 9 3 Select Devices Page ...
Страница 151: ...151 Figure 9 4 Convert Programming Files Page ...