Connecting to AWS

To get started with AWS, you will need an Amazon account. You will also need AWS credit to run the tutorial. If you are a professor or a student, you may be eligible to free credit by registering with AWS educate.

Set up an AWS instance

Use this guide to setup and AWS instance. Make sure to use the FPGA Developer AMI version 1.9.0 which includes Xilinx Vitis 2020.1 tools that this tutorial is based on.

Login into the AWS and starting an F1 instance

  1. Once you have an account, log in to the EC2 AWS Console:

    This should bring you to the EC2 dashboard (Elastic Compute).

    In the EC2 dashboard, select Launch Instance. From here you should be able to start your instance.

Additional setup

You may want to do some additional setup to allow you to VNC to your instance. You can also follow the instructions in Setup XUP AWS Workshop to connect to your instance.

VNC server setup

When setting up an instance for the first time, you need to install vncserver software.

Install VNC server

In a terminal, execute the following commands

sudo yum install -y tigervnc-server
sudo yum groupinstall -y "Server with GUI"

When launching vncserver, you will be prompted to set up a password that you will need later.

Start vncserver

Each time you start an instance, you will need to start vncserver

vncserver -geometry 1920x1080
  1. You can choose your preferred geometry (screensize)

  2. You should see a status message in the terminal once vncserver has started.

  3. Take note of the number after the “:”

  4. In this case, 1. This is the port the VNC viewer will connect to on the VNC server and needs to be specified as a two digit number below: 01.

  5. Connect to AWS instance from VNC viewer.

  6. From VNC viewer, specify the IP address of your AWS instance, followed by the VNC port number (as identified above), in this case :1

  7. When prompted, enter the VNC server password set up earlier.

  8. You should then be connected to the AWS instance.

Verify XRT and Vitis tools

Open a terminal and verify that Xilinx Vitis tools have been preinstalled and are on the path:

which vitis

Note that the XRT tools are installed (/opt/xilinx/xrt) but are not included on the path by default.

sudo chmod 777 /opt/xilinx/xrt/
#Source XRT everytime a new terminal is open
echo "source /opt/xilinx/xrt/" >> ~/.bashrc
#Reload .bashrc in the current terminal
source ~/.bashrc

Clone AWS-FPGA repository and set variables

  1. Open a terminal

  2. If you are using the Xilinx provided instances then execute the following to clone the aws-fpga repository and setup the Xilinx tools. aws-fpga includes the AWS F1 tools, Hardware Development Kit (HDK) and documentation

    cd ~
    git clone -b v1.4.21
    echo "export PLATFORM_REPO_PATHS=~/aws-fpga/Vitis/aws_platform/xilinx_aws-vu9p-f1_shell-v04261818_201920_2/" >> ~/.bashrc
    echo "source /opt/xilinx/xrt/" >> ~/.bashrc
    echo "source $XILINX_VITIS/" >> ~/.bashrc
    git clone
    source ~/.bashrc
    source ~/aws-fpga/
    source ~/aws-fpga/

    The previous commands will:

    • Clone the AWS F1 tools
    • Setup the platform directory
    • Clone this repository to get source code
    • Source XRT
    • Source AWS F1 tools
  3. If you are using the AWSEducate instances then execute the following to clone the xup_compute_acceleration repository. No additional variables need to be set as the provided AMI has all necessary files including aws-fpga repository cloning, the AWS F1 tools, Hardware Development Kit (HDK) and documentation

    git clone

    The previous command will:

    • Clone this repository to get source code and solutions

For more details see:

Copyright© 2021 Xilinx