HAN Pilot Platform
Demonstration Manual
64
www.terasic.com
September 6, 2019
Figure 4-3 Connection in the top design
4
4
.
.
5
5
C
C
o
o
m
m
p
p
i
i
l
l
e
e
a
a
n
n
d
d
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
i
i
n
n
g
g
In the Platform Design tool, click the menu item “Generate Generate…” to generate source code for
the system and then close the Qsys tool. Now, users can start the compile process by clicking the
menu item “Processing Start Compilation”.
When the compilation process is completed successfully,
a10s.sof
is generated in the
a10s_ghrd\output_files folder. Users can use this file to configure FPGA by Quartus Programming
through the HAN Pilot Platform on-board USB-Blaster II.
4
4
.
.
6
6
D
D
e
e
v
v
e
e
l
l
o
o
p
p
t
t
h
h
e
e
C
C
C
C
o
o
d
d
e
e
This section introduces how to design an ARM C program to control the
led_pio
PIO controller.
SoC EDS is used to compile the C project. For ARM program to control the
led_pio
PIO
component,
led_pio
address is required. The Linux built-in driver ‘/dev/mem’ and mmap
system-call are used to map the physical base address of led_pio component to a virtual address
which can be directly accessed by Linux application software.
LED_PIO Address
The led_pio component information is required for ARM C program as the program will attempt to
control the component. This section describes how to get led_pio’s address.
You can get led_pio’s address from qsys’s Address Map dialog box.
address in Address Map. You can define a macro for the address when you use it.
Содержание HAN Pilot Platform
Страница 1: ......
Страница 92: ...HAN Pilot Platform Demonstration Manual 91 www terasic com September 6 2019...