DE10-Standard
User Manual
110
www.terasic.com
January 19, 2017
Figure 7-4 Running the SDRAM Controller tcl
Now, users can start the compile process by clicking the menu item “Processing
Start
Compilation”.
When
the
compilation
process
is
completed
successfully,
DE10_Standard_SoC_GHRD.sof
is generated in the DE10_Standard_SoC_GHRD\output_files
folder. Users can use this file to configure FPGA by Quartus Programming through the
DE10-Standard on-board USB-Blaster II.
7
7
.
.
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.
HPS Header File
pio_led component information is required for ARM C program as the program will attempt to
control the component. This section describes how to use a given Linux shell batch file to extract
the Qsys HPS information to a header file which will be included in the C program later.
The batch file mentioned above is called as
generate_hps_qsys_header.sh
. It is located in the same
folder as DE10_Standard_SoC_GHRD Quartus project. To generate the header file, launch SoC