Terasic FLIK Getting Started Manual

Terasic FLIK Getting Started Manual

Intel fpga

Advertisement

Quick Links

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

Advertisement

Table of Contents
loading

Summary of Contents for Terasic FLIK

  • Page 1 FLIK Getting www.terasic.com 1.1. Q Started Guide January 15, 2020...
  • Page 2: Table Of Contents

    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 Setup ....................15 Other Demonstrations ................. 20 Chapter 6 Factory Recovery ..............30 Chapter 7 Additional Information ............
  • Page 3: Chapter 1 Overview

    This chapter provides an overview of this guide. 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.
  • Page 4: Chapter 2 Install Thunderbolt3 Driver

    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 FPGA and the host PC via a thunderbolt3 cable.
  • Page 5: Install Thunderbolt 3 Driver

     Linux Installed(In this document, we recommend you to install Ubuntu 16.04.6 LTS (64-bit))  A FLIK kit  A Thunderbolt 3 Cable as shown in below. Install Thunderbolt 3 Driver Download the Thunderbolt user-space components in the link below and save it to your computer: https://github.com/intel/thunderbolt-software-user-space...
  • Page 6 --build . --target install Next, verify whether the Host PC has detected the PCIe device after connecting to the FLIK via the Thunderbolt 3 cable. Plug the DC 12V power adapter to the FLIK to power on the FLIK. FLIK Getting www.terasic.com...
  • Page 7 Connect the Host PC to the FLIK with a Thunderbolt3 cable. 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 www.terasic.com Started Guide January 15,...
  • Page 8 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 www.terasic.com Started Guide...
  • Page 9: Chapter 3 Install Intel Acceleration Stack

    “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.
  • Page 10 3. Change to the unzipped folder: cd a10_gx_pac_ias_1_2_pv_dev_installer Run setup.sh ./setup.sh You are prompted with the following question: Do you wish to install OPAE? Answer Y. Accept the license. FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 11 7. When you receive an installation directory prompt, you can specify an install directory. Otherwise, installer uses default directory /home/<username>/inteldevstack to install Intel® Quartus® Prime Pro Edition and OpenCL* SDK. FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 12: Chapter 4 Install Intel Distribution Of Openvino Toolkit

    _fpga.html Go to the link below to download the Intel® Distribution of OpenVINO toolkit for Linux* with FPGA support: https://software.intel.com/en-us/openvino-toolkit/choose-download/free-download -linux-fpga Please select 2019R1 version and select Full Package to download. FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 13 -xvzf l_openvino_toolkit_fpga_p_2019.1.094.tgz The files are unpacked to the l_openvino_toolkit_fpga_p_<version> directory. Go to the l_openvino_toolkit_fpga_p_<version> directory: cd l_openvino_toolkit_fpga_p_2019.1.094 Install the toolkit via GUI Installation Wizard. sudo ./install_GUI.sh Follow the instructions to install the toolkit FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 14 Install external software dependencies, change to the install_dependencies directory: cd /opt/intel/openvino/install_dependencies 10. Turn the script into an executable file. sudo chmod +x install_openvino_dependencies.sh 11. Run a script to download and install the external software dependencies: sudo -E ./install_openvino_dependencies.sh FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 15: Install And Verify The Terasic Demonstration Of The Flik

    Chapter 5 Install and verify the Terasic Demonstration of the FLIK This chapter will show you how to quickly experience the Inference Engine demo on the FLIK. Setup This section describes how to quickly setup the environment for running an Inference Engine demonstration.
  • Page 16 Copy the "terasic_demo_flik_linux_2019R1" folder to the path: /opt/intel/openvino/deployment_tools. sudo cp -r terasic_demo_flik_linux_2019R1 /opt/intel/openvino/deployment_tools Go to the folder location you just copied cd /opt/intel/openvino/deployment_tools/terasic_demo_flik_linux_2019R1/ Switch to superuser sudo su Execute the setting environment variable script. source setup_board_flik.sh FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 17 Make sure the FLIK is powered on and connected to the host PC via Thunderbolt 3 cable. Execute the following command to verify whether the host PC has detected PCIe device in the FLIK. lspci | grep 09c4 The result should be returned: 06:00.0 Processing accelerators: Intel Corporation Device...
  • Page 18 Next, we will introduce how to use the squeezenet model with the FLIK to identify objects in the image. FLIK Getting www.terasic.com...
  • Page 19 In this demo, a SqueezeNet bitstream will be programmed into the FPGA on the FLIK and deploy the classification sample with a SqueezeNet model. 12. After installing the OpenVINO toolkit, there are several pre-compile bitstreams that can be directly used by Arria 10 FPGA on the FLIK. The location of these files /opt/intel/openvino/bitstreams/a10_dcp_bitstreams directory.
  • Page 20: Other Demonstrations

    "terasic_demo_flik_linux_2019R1" package. This section will briefly introduce the contents and results of the demo. shown figure below, there some shell scripts terasic_demo_flik_linux_2019R1/demo folder. Below is the brief introduction of the demo folder. FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 21 Please refer to Converting a TensorFlow* Model transfer the Tensorflow model IR folder : While running the demo, the corresponding model IR file will be generated automatically if it’s needed. FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 22 Please note that each time you restart your terminal, please refer to steps 5~ 7 in section 5.1 to set the environment variable. Also, each time you restart your FLIK, please refer to steps 8~12 to set and verify the FPGA configuration in FLIK.
  • Page 23 Execute the demo batch file (run demo with FPGA). ./02_squeezenet_classification.sh fpga Users can see “HETERO:FPGA, CPU”, which prompts the DEMO is running on FPGA and CPU. It prints out the top 10 results. FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 24 This demo can recognize the car, car license number, and its location by using the three models. 1. Execute the demo batch file ./03_security_barrier.sh fpga 2. The result is shown in the figure below. Enter Ctrl+C to close the application. FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 25 4. To use video file as the video source of this demo. Please execute the command in below. ./04_ face_detection.sh video fpga 5. The result is shown in the figure below. Enter Ctrl+C to close the application. FLIK Getting www.terasic.com Started Guide January 15,...
  • Page 26 This demo can recognize the target object by using GoogleNetV2. The object tags are shown in the figure below: 1. Plug the UVC USB camera to the host PC USB port. 2. Execute the demo batch file to run the demo with FPGA. FLIK Getting www.terasic.com Started Guide January 15,...
  • Page 27 3. The results are shown in the figure below. 4. User can also use the video file as the input source of this demo. ./05_GoogleNetV2_object_detection.sh video fpga 5. The results are shown in the figure below.  Alexnet Classification FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 28 2. The results are shown in the figure below.  Human Pose Estimation This demo can recognize human pose and display it. 1. Execute the demo batch file to run the demo with FPGA. FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 29 ./07_human_pose_estimation.sh fpga 2. The result is shown in the figure below. Enter Ctrl+C to close the application. FLIK Getting www.terasic.com Started Guide January 15, 2020...
  • Page 30: Chapter 6 Factory Recovery

    This chapter will show you how to recover the factory image file into the serial flash in the FLIK. When the FLIK is power on, the FPGA will read the factory configure file from the serial flash. The factory configuration allows the FPGA perform the acceleration task with the host PC.
  • Page 31 Development version as described in Chapter3. Source init_env.sh 4. You can use the Quartus programmer tool to check the JTAG chain status in the FLIK by entering the following command. The result will list the FPGA device status in the FLIK. jtagconfig FLIK Getting www.terasic.com...
  • Page 32 6. This procedure will first erase flash and then program it. It may take a few minutes. 7. After the program is complete, please power cycling the FLIK (Power off the FLIK first, then reopen the FLIK). Then reboot your system. Thus, the FLIK can restore to factory status for using.
  • Page 33: Chapter 7 Additional Information

    Here are the addresses where you can get help if you encounter problems:  Terasic Technologies 9F., No.176, Sec.2, Gongdao 5 East Dist, HsinChu City, Taiwan, 30070 Email: support@terasic.com Web: www.terasic.com FLIK Web: flik.terasic.com  Revision History Date Version Changes 2019.09 First publication 2020.01 V1.1...

Table of Contents