DE5a-Net OpenCL
www.terasic.com
March 29, 2017
23
environment variable for the DE5a-Net board
AOCL_BOARD_PACKAGE_ROOT
, and set its
value as:
"$ALTERAOCLSDKROOT"/board/de5a_net_e1”
Alternatively, you can edit the “/etc/profile”
profile
file, and append the environment variables to it.
To do this type “
gedit /etc/profile” command on Linux Terminal
to open the
profile
file by the
gedit
editor tool, and append the following setting to the
profile
file. Then, save the file
and type “
source
/etc/profile”
command in Linux Terminal to make the settings make effect.
export
QUARTUS_ROOTDIR
=/root/intelFPGA_pro/16.1/quartus
export
ALTERAOCLSDKROOT
=/root/ intelFPGA_pro/16.1/hld
export
AOCL_BOARD_PACKAGE_ROOT
=$ALTERAOCLSDKROOT"/board/de5a_net_e1
export
PATH
=$PATH:$QUARTUS_ROOTDIR/bin:$ALTERAOCLSDKROOT/linux64/bin:$ALTERAOCLSDKR
OOT/bin:$ALTERAOCLSDKROOT/host/linux64/bin:/root/intelFPGA_pro/16.1/qsys/bin
export
LD_LIBRARY_PATH
=$AOCL_BOARD_PACKAGE_ROOT/linux64/lib:$ALTERAOCLSDKROOT
/host/linux64/lib:$AOCL_BOARD_PACKAGE_ROOT/tests/extlibs/lib
export
QUARTUS_64BIT
=1
export
LM_LICENSE_FILE
=/root/ intelFPGA_pro/16.1/hld/license.dat
3
3
.
.
4
4
B
B
o
o
a
a
r
r
d
d
S
S
e
e
t
t
u
u
p
p
Before testing OpenCL on DE5a-Net, please following the below procedure to setup DE5a-Net
board on your PC as shown in
Figure 3-4
.
1.
Make sure your PC is power off.
2.
Insert DE5a-Net board into PCI Express x8 or x16 slot.
3.
Connect PC‟s 12V PCI Express 6-pin power to the DE5a-Net source (if there‟s not, ignore
this step)
4.
Connector PC‟s USB port to DE5a-Net mini USB port using an USB cable.
Note, the usb cable can be removed later if any one of OpenCL code had been programming to the
startup configuration flash of DE5a-Net by „
aocl flash
‟ command.