1. Connecting to your F1 instance | 2. Makefile Flow Lab | 3. GUI Flow Lab | 4. Optimization Lab | 5. RTL-Kernel Wizard Lab | 6. Debug Lab |
Welcome to the XUP AWS F1 Labs. These labs will provide you hands-on experience with AWS F1 when connected to AWS F1 instance using workshop accounts. You will learn how to develop accelerated applications using the AWS F1 OpenCL flow and the Xilinx SDAccel development environment.
The architecture of the AWS F1 platform and the SDAccel development flow are pictured below:
- Amazon EC2 F1 is a compute instance combining x86 CPUs with Xilinx FPGAs. The FPGAs are programmed with custom hardware accelerators which can accelerate complex workloads up to 30x when compared with servers that use CPUs alone.
- An F1 application consists of an x86 executable for the host application and an FPGA binary (also referred to as Amazon FPGA Image or AFI) for the custom hardware accelerators. Communication between the host application and the accelerators are automatically managed by the OpenCL runtime.
- SDAccel is the development environment used to create F1 applications. It comes with a fully fledged IDE, x86 and FPGA compilers, profiling and debugging tools.
- The host application is written in C or C++ and uses the OpenCL API to interact with the accelerated functions. The accelerated functions (also referred to as kernels) can be written in C, C++, OpenCL or even RTL.
There are five labs. It is recommended to complete each lab before proceeding to the next.
- Connecting to Your F1 Instance
You will start a pre-configured EC2 F1 instance and connect to it using a remote desktop client. - Makefile Flow Lab
This lab guides you through the steps involved in using a Makefile flow to build and perform CPU and hardware emulation to verify the functionality. You will then use an AWS F1 instance to validate the design. - GUI Flow Lab
This lab guides you through the steps involved in using a GUI flow to create an SDAccel project. After creating a project you will run CPU and hardware emulation to verify the functionality. You will then use an AWS F1 instance to validate the design on F1. - Optimization Lab
This lab guides you through the steps involved in creating a project and adding a kernel function. After creating a project you will run CPU and hardware emulation to verify the functionality, analyze various generated reports and then apply techniques both on host and kernel side to improve throughput and data transfer rate. - RTL-Kernel Wizard Lab
This lab guides you through the steps involved in using a RTL Kernel wizard to wrap a user RTL-based IP so the generated IP can be used in SDAccel project.
Since building FPGA binaries is not instantaneous, all the labs will use precompiled FPGA binaries.
Start the first lab: 1. Connecting to your F1 instance