Home

Awesome

Table of Contents

  1. Overview of AWS EC2 FPGA Development Kit
  2. Amazon EC2 F1 platform features
  3. Getting Started
  4. Documentation Overview

Overview of AWS EC2 FPGA Development Kit

AWS EC2 FPGA Development Kit is a set of development and runtime tools to develop, simulate, debug, compile and run hardware accelerated applications on Amazon EC2 F1 instances. It is distributed between this github repository and FPGA Developer AMI - Centos/AL2 provided by AWS with no cost of development tools.

⚠️ <b>NOTE:</b> The developer kit is supported for Linux operating systems only.

Developer Support

Opening a GitHub Issue is the preferred method to get support with the AWS FPGA Development Kit. In addition, the FPGA Development re:Post Tag is available to find FPGA-related discussion topics from the AWS community of customers, AWS customer support, and the AWS FPGA development team.

Development Flow

After creating an FPGA design (also called CL - Custom logic), developers can create an Amazon FPGA Image (AFI) and easily deploy it to an F1 instance. AFIs are reusable, shareable and can be deployed in a scalable and secure way.

Alt text

Development Environments

Development EnvironmentDescriptionAccelerator LanguageHardware InterfaceDebug OptionsTypical Developer
Software Defined Accelerator Development using Vitis/SDAccelDevelopment experience leverages an optimized compiler to allow easy new accelerator development or migration of existing C/C++/openCL, Verilog/VHDL to AWS FPGA instancesC/C++/OpenCL, Verilog/VHDL (RTL)OpenCL APIs and XRTSW/HW Emulation, Simulation, GDB, Virtual JTAG (Chipscope)SW or HW Developer with zero FPGA experience
Hardware Accelerator Development using VivadoFully custom hardware development experience provides hardware developers with the tools required for developing AFIs for AWS FPGA instancesVerilog/VHDLXDMA Driver, peek/pokeSimulation, Virtual JTAGHW Developer with advanced FPGA experience
IP Integrator/High Level Design(HLx) using VivadoGraphical interface development experience for integrating IP and high level synthesis developmentVerilog/VHDL/CXDMA Driver, peek/pokeSimulation, Virtual JTAGHW Developer with intermediate FPGA experience
On-premise development for Alveo U200 using Vitis targetted for migration to F1Vitis flow development using on-premise U200 platform targeted for migration to F1C/C++/OpenCL, Verilog/VHDL (RTL)OpenCL APIs and XRTSW/HW Emulation, Simulation, GDB, JTAG (Chipscope)SW or HW Developer with zero FPGA experience and on-premise U200 card
On-premise development for Alveo U200 using F1.A.1.4 shellHDK flow for on-premise U200 card using F1.A.1.4 shell targetted for migration to F1Verilog/VHDLXDMA driver, peek/pokeSimulation, JTAGHW Developer with advanced FPGA experience and on-premise U200 card

For on-premise development, SDAccel/Vitis/Vivado must have the correct license and use one of the supported tool versions.

FPGA Developer AMI

The FPGA Developer AMI is available on the AWS marketplace without a software charge and includes tools needed for developing FPGA Designs to run on AWS F1.

Given the large size of the FPGA used inside AWS F1 Instances, Xilinx tools work best with 32GiB Memory. z1d.xlarge/c5.4xlarge and z1d.2xlarge/c5.8xlarge instance types would provide the fastest execution time with 30GiB+ and 60GiB+ of memory respectively. Developers who want to save on cost, could start coding and run simulations on low-cost instances, like t2.2xlarge, and move to the aforementioned larger instances to run the synthesis of their acceleration code.

AWS marketplace offers multiple versions of the FPGA Developer AMI. The following section table describes the mapping of currently supported developer kit versions to AMI versions.

Xilinx tool support

Developer Kit VersionTool Version SupportedCompatible FPGA Developer AMI Version
1.4.23+2021.2v1.12.X (Xilinx Vivado/Vitis 2021.2)
1.4.21+2021.1v1.11.X (Xilinx Vivado/Vitis 2021.1)
1.4.18+2020.2v1.10.X (Xilinx Vivado/Vitis 2020.2)
1.4.16+2020.1v1.9.0-v1.9.X (Xilinx Vivado/Vitis 2020.1)
1.4.13+2019.2v1.8.0-v1.8.X (Xilinx Vivado/Vitis 2019.2)
1.4.11+2019.1v1.7.0-v1.7.X (Xilinx Vivado/SDx 2019.1)
1.4.8 - 1.4.15b2018.3v1.6.0-v1.6.X (Xilinx Vivado/SDx 2018.3)
1.4.3 - 1.4.15b2018.2v1.5.0-v1.5.X (Xilinx Vivado/SDx 2018.2)
⚠️ 1.3.7 - 1.4.15b2017.4v1.4.0-v1.4.X (Xilinx Vivado/SDx 2017.4) ⚠️

⚠️ Developer kit release v1.4.16 will remove support for Xilinx 2017.4, 2018.2, 2018.3 toolsets. While developer kit release v1.4.16 onwards will not support older Xilinx tools, you can still use them using HDK releases v1.4.15b or earlier. Please check out the latest v1.4.15b release tag from Github to use Xilinx 2017.4, 2018.2, 2018.3 toolsets.

For deprecation notices, please check the End of life announces

For software-defined development please look at the runtime compatibility table based on the Xilinx toolset in use: SDAccel or Vitis

End of life Announcements

Xilinx Tool versionStateStatement
2017.1🚫 Deprecated on 09/01/2018Developer kit versions prior to v1.3.7 and Developer AMI prior to v1.4 (2017.1) reached end-of-life.
2017.4🚫 Deprecated on 12/31/2021Support for Xilinx 2017.4 toolsets was deprecated on 12/31/2021.
2020.1 and belowDiscontinued on 02/2022Removed the ability for customers to newly subscribe to 2020.1 and below AMI versions to remove exposure to CVE-2021-44228 as these versions of tools do not have patches from xilinx

Hardware Development Kit (HDK)

The HDK directory contains documentation, examples, simulation, build and AFI creation scripts to start building Amazon FPGA Images (AFI).
The HDK can be installed on any on-premises server or an EC2 instance. The developer kit is not required if you plan to use a pre-built AFI shared from another developer.

AWS Shells

With Amazon EC2 FPGA instances, each FPGA is divided into two partitions:

At the end of the development process, combining the Shell and CL creates an Amazon FPGA Image (AFI) that can be loaded onto the Amazon EC2 FPGA Instances.

The following table provides the shells currently available to develop your CL with. Each shell provides specific interfaces and features and currently needs to be used with the Dev Kit branch listed in the table.

Shell NameShell VersionDev Kit BranchDescription
F1 XDMA ShellF1.X.1.4masterProvides all the interfaces listed here, includes DMA
F1 Small ShellF1.S.1.0small_shellProvides all the interfaces listed here. This shell does not include DMA engine and provides significant reduction in Shell resource usage.

For more details, check the FAQ

Software-defined Development Environment

The software-defined development environment allows customers to compile their C/C++/OpenCL code into the FPGA as kernels, and use OpenCL APIs to pass data to the FPGA. Software developers with no FPGA experience will find a familiar development experience that supercharges cloud applications.

In addition, this development environment allows for a mix of C/C++ and RTL accelerator designs into a C/C++ software based development environment. This method enables faster prototyping using C/C++ while supporting manual optimization of critical blocks within RTL. This approach is similar to optimizing time critical functions using software compiler optimization methods.

To get started with Xilinx SDAccel, review the Software-defined development environment readme. To get started with Xilinx Vitis, review the Vitis unified development environment readme.

Runtime Tools (SDK)

The SDK directory includes the runtime environment required to run on EC2 FPGA instances. It includes the drivers and tools to manage the AFIs that are loaded on the FPGA instance. The SDK isn't required during the AFI development process; it is only required once an AFI is loaded onto an EC2 FPGA instance. The following sdk resources are provided:

Amazon EC2 F1 Platform Features

Getting Started

Getting familiar with AWS

If you have never used AWS before, we recommend you start with AWS getting started training, and focus on the basics of the AWS EC2 and AWS S3 services. Understanding the fundamentals of these services will make it easier to work with AWS F1 and the FPGA Developer Kit.

FPGA Image generation and EC2 F1 instances are supported in the us-east-1 (N. Virginia), us-west-2 (Oregon), eu-west-1 (Ireland) and us-gov-west-1 (GovCloud US) regions.

⚠️ <b>NOTE:</b> By default, your AWS Account will have an EC2 F1 Instance launch limit of 0. Before using F1 instances, you will have to open a Support Case to increase the EC2 Instance limits to allow launching F1 instances.

Setting up development environment for the first time

You have the choice to develop on AWS EC2 using the FPGA Developer AMI or on-premise.

ℹ️ <b>INFO:</b> We suggest starting with the FPGA Developer AMI with build instances on EC2 as it has Xilinx tools and licenses setup for you to be able to quickly get into development.

ℹ️ <b>INFO:</b> For on-premise development, you will need to have Xilinx tools and licenses available for you to use

  1. Start a Build Instance first to start your development.

    💡 <b>TIP:</b> This instance does not have to be an F1 instance. You only require an F1 instance to run your AFI's(Amazon FPGA Image) once you have gone through your design build and AFI creation steps.

    ℹ️ <b>INFO:</b> If you need to follow GUI Development flows, please checkout our Developer Resources where we provide Step-By-Step guides to setting up a GUI Desktop.

  2. Clone the FPGA Developer Kit on your instance. git clone https://github.com/aws/aws-fpga.git

  3. Follow the quickstarts from the next section.

Quickstarts

Before you create your own AWS FPGA design, we recommend that you go through one of the step-by-step Quickstart guides:

DescriptionQuickstartNext Steps
Software Defined Accelerator Development using Xilinx VitisVitis hello_world Quickstart60+ Vitis examples, Vitis Library Examples
Software Defined Accelerator Development using Xilinx SDAccelSDAccel hello_world Quickstart60+ SDAccel examples
Custom Hardware Development(HDK)HDK hello_world QuickstartCL to Shell and DRAM connectivity example, Virtual Ethernet Application using the Streaming Data Engine
IP Integrator/High Level Design(HLx)IPI hello_world QuickstartIPI GUI Examples

ℹ️ <b>INFO:</b> For more in-depth applications and examples of using High level synthesis, Vitis Libraries, App Notes and Workshops, please refer to our Example List

How Tos

How ToDescription
Migrate Alveo U200 designs to F1 - VitisThis application note shows the ease of migrating an Alveo U200 design to F1.
Migrate Alveo U200 designs to F1 - HDKPath to migrate from U200 vivado design flow to F1 HDK flow using AWS provided shells.

Documentation Overview

Documentation is located throughout this developer kit and the table below consolidates a list of key documents to help developers find information:

TopicDocument NameDescription
AWS setupSetup AWS CLI and S3 BucketSetup instructions for preparing for AFI creation
Developer KitRELEASE NOTES, ErrataRelease notes and Errata for all developer kit features, excluding the shell
Developer KitErrataErrata for all developer kit features, excluding the shell
F1 ShellAWS Shell RELEASE NOTESRelease notes for F1 shell
F1 ShellAWS Shell ERRATAErrata for F1 shell
F1 ShellAWS Shell Interface SpecificationShell-CL interface specification for HDK developers building AFI
F1 Shell - Timeout and AXI Protocol ProtectionHow to detect a shell timeoutThe shell will terminate transactions after a time period or on an illegal transaction. This describes how to detect and gather data to help debug CL issues caused by timeouts.
VitisDebug Vitis KernelInstructions on debugging Vitis Kernel
VitisCreate Runtime AMIInstructions on creating a runtime AMI when using Xilinx Vitis
VitisXRT InstructionsInstructions on building, installing XRT with MPD daemon considerations for F1
SDAccelDebug RTL KernelInstructions on debugging RTL Kernel with SDAccel
SDAccelCreate Runtime AMIInstructions on creating a runtime AMI when using Xilinx SDAccel
HDK - Host ApplicationProgrammer ViewHost application to CL interface specification
HDK - CL DebugDebug using Virtual JTAGDebugging CL using Virtual JTAG (Chipscope)
HDK - SimulationSimulating CL DesignsShell-CL simulation specification
HDK - DriverREADMEDescribes the DMA driver (XDMA) used by HDK examples and includes a link to an installation guide
AFIAFI Management SDKCLI documentation for managing AFI on the F1 instance
AFI - EC2 CLIcopy_fpga_image, delete_fpga_image, describe_fpga_images, fpga_image_attributesCLI documentation for administering AFIs
AFI - Creation Error Codescreate_fpga_image_error_codesCLI documentation for managing AFIs
AFI - PowerFPGA Power, recovering from clock gatingHelps developers with understanding FPGA power usage, preventing power violations on the F1 instance and recovering from a clock gated slot.
On-premise DevelopmentTools, Licenses required for on-premise developmentGuidance for developer wanting to develop AFIs from on-premises instead of using the FPGA Developer AMI
PCIe Peer-2-PeerP2PGuidance on using PCIe P2P
PCIe write combiningPCIe write combineDocumentation on PCIe write combining for performance improvement
Frequently asked questionsFAQQ/A are added based on developer feedback and common AWS forum questions