Terasic FLIK Manuel utilisateur

FLIK Getting
Started Guide
1
www.terasic.com
January 15,
2020
1.1. Q

FLIK Getting
Started Guide
2
www.terasic.com
January 15,
2020
Contents
Chapter 1 Overview..................................................................................3
1.1 General Description ..............................................................................3
Chapter 2 Install Thunderbolt3 driver ....................................................4
2.1 Hardware Requirement.........................................................................4
2.2 Install Thunderbolt 3 Driver...................................................................5
Chapter 3 Install Intel Acceleration Stack..............................................9
Chapter 4 Install Intel Distribution of OpenVINO toolkit.....................12
Chapter 5 Install and verify the Terasic Demonstration of the FLIK..15
5.1 Setup...................................................................................................15
5.2 Other Demonstrations.........................................................................20
Chapter 6 Factory Recovery..................................................................30
Chapter 7 Additional Information .........................................................33

FLIK Getting
Started Guide
3
www.terasic.com
January 15,
2020
Chapter 1
Overview
This chapter provides an overview of this guide.
1.1 General Description
This document will describe how to quickly run a face recognition demo using FLIK in a
Linux environment. The content will include the driver, software that needs to be
installed. It allows users to quickly experience the acceleration ability of deep learning
inference brought by FPGA hardware platform:
1. Install Thunderbolt3 driver
2. Install Intel® PAC and the Intel® ProgrammableAcceleration Card Stack
3. Install Intel® Distribution of OpenVINO™ toolkit for Linux* with FPGA Support
4. Install and verify the Terasic FLIK demo package
Before you start using the FLIK, users need to prepare some Development and Target
Platform. To use FLIK with Linux, the required PC hardware and Linux Operating
System can be obtained from the link below.
https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_linux.
html
It is important to note that because the transmission and communication interface
between FLIK and host PC is Thunderbolt 3. User's PC must have Thunderbolt 3
interface to connect with FLIK.
In addition, in this document, the Linux distribution we use is Ubuntu 16.04.6 LTS
(64-bit). Note, for many Linux distributions of Ubuntu 16.04, Ubuntu 16.04.6 can install
Thunderbolt3 driver normally, which is the ultimate system requirement for using FLIK.

FLIK Getting
Started Guide
4
www.terasic.com
January 15,
2020
Chapter 2
Install Thunderbolt3 driver
hunderbolt 3 is unique communication path between the Host PC and FLIK. As
shown in below, the FLIK use thunderbolt3 port to connect the PCIe and USB
Blaster II interface to the FPGA. For the OpenCL and OpenVINO applications
with the Intel FPGA, the PCIe bus is the main interface for communicating and
transferring data with the host PC. The thunderbolt3 port on the FLIK allows the user to
build such connection for the FPGAand the host PC via a thunderbolt3 cable.
In addition, the thunderbolt3 on the FLIK also provides an USB interface to connect to
the USB Blaster II circuit on the board, providing a JTAG interface for the user to
program the FPGA or configuration device through the host PC.
Therefore, a host PC equipmented with thunderbolt 3 port is required to work with the
FLIK. This chapter will show user how to setup thunderbolt 3 connection between the
Host PC and the FLIK for the first time.
2.1 Hardware Requirement
A Host PC with Thunderbolt 3 Port is required to perform FLIK function tests.
The PC should contain the features in below:
T

FLIK Getting
Started Guide
5
www.terasic.com
January 15,
2020
Built-in Thunderbolt 3 Port or with Thunderbotl3 Card Installed.
Linux Installed(In this document, we recommend you to install Ubuntu
16.04.6 LTS (64-bit))
A FLIK kit
AThunderbolt 3 Cable as shown in below.
2.2 Install Thunderbolt 3 Driver
1. Download the Thunderbolt user-space components in the link below and save it to
your computer:
https://github.com/intel/thunderbolt-software-user-space
2. You also need a C++ compiler with C++14 support. You can install the
dependencies with the following command:
sudo apt-get install cmake libboost-filesystem-dev txt2tags pkg-config
3. Unzip the downloaded file thunderbolt-software-user-space-master.zip

FLIK Getting
Started Guide
6
www.terasic.com
January 15,
2020
4. Open terminal and locate the unzipped directory.
5. Execute the following command to install Thunderbolt 3 driver:
omkdir build
ocd build
ocmake .. -DCMAKE_BUILD_TYPE=Release
ocmake --build .
osudo cmake --build . --target install
6. Next, verify whether the Host PC has detected the PCIe device after connecting to
the FLIK via the Thunderbolt 3 cable.
7. Plug the DC 12V power adapter to the FLIK to power on the FLIK.

FLIK Getting
Started Guide
7
www.terasic.com
January 15,
2020
8. Connect the Host PC to the FLIK with a Thunderbolt3 cable.
9. Approve all currently connected Thunderbolt devices that aren't authorized yet
and (if --once wasn't specified) add them to PC:
sudo tbtadm approve-all

FLIK Getting
Started Guide
8
www.terasic.com
January 15,
2020
10. Execute the following command to verify whether the host PC has detected the
PCIe device :
lspci | grep 09c4
The result should be returned:
06:00.0 Processing accelerators: Intel Corporation Device 09c4
That shows the driver of the Thunderbolt3 has been installed on your host PC correctly
and the PCIe device in the FLIK is detected by the host PC.

FLIK Getting
Started Guide
9
www.terasic.com
January 15,
2020
Chapter 3
Install Intel Acceleration Stack
This chapter describes how to install the Intel® Acceleration Stack.
1. Go to the link below download Intel® Acceleration Stack Version 1.2, please
download “Acceleration Stack for Development”. Users do not need to modify
the factory code in the serial flash if the FLIK, or do not use the Quartus tool. You
can choose “Acceleration Stack for Runtime”version to install. Note that in the
following steps, you need to pay attention to the difference between the file name
and the path name.
https://www.intel.com/content/www/us/en/programmable/products/boards_and_kits/de
v-kits/altera/acceleration-card-arria-10-gx/getting-started.html
2. Go to the download file location and open terminal. Unzip the downloaded file:

FLIK Getting
Started Guide
10
www.terasic.com
January 15,
2020
a10_gx_pac_ias_1_2_pv_dev_installer.tar.gz
tar xvf a10_gx_pac_ias_1_2_pv_dev_installer.tar.gz
3. Change to the unzipped folder:
cd a10_gx_pac_ias_1_2_pv_dev_installer
4. Run setup.sh
./setup.sh
5. You are prompted with the following question: Do you wish to install OPAE?
Answer Y.
6. Accept the license.
Table des matières

















