DE5a-Net OpenCL
www.terasic.com
March 29, 2017
12
2
2
.
.
5
5
O
O
p
p
e
e
n
n
C
C
L
L
E
E
n
n
v
v
i
i
r
r
o
o
n
n
m
m
e
e
n
n
t
t
V
V
e
e
r
r
i
i
f
f
y
y
a
a
n
n
d
d
F
F
l
l
a
a
s
s
h
h
C
C
v
v
P
P
This section will show how to make sure the OpenCL environment is setup correctly. Firstly, please
open
Command Prompt
windows by click Windows
Start
button, clicking
All Programs
, clicking
Accessories
, and then click
Command Prompt
.
Target Board
In Command Prompt window, type “
aoc --list-boards
” command, and make sure “
de5a_net_e1
” is
listed in
Board list
as shown in
Figure 2-8
.
Figure 2-8 „de5a_net_e1‟ is listed in Board list
Test „aocl flash‟ Command
In Command Prompt window, type ”cd C:\intelFPGA_pro\16.1\hld\board\de5a_net_e1\tests\hell
o_world\bin” to go to hello world OpenCL project folder.
Then type “
aocl flash aclde5a_net0 hello_world.aocx
” to write
hello_world.aocx
OpenCL image
onto the startup configuration flash of DE5a-Net. Before flash programming, the programmer will
ask users which startup configuration image area will be used as shown in
Figure 2-9
. This is
because DE5a-Net provides two startup configuration image areas, called as Factory Image and
User Image. We recommend users to key in „1‟ to select User Image area.