Vitis™Hardware Acceleration Introduction TutorialSee Vitis™ Development Environment on xilinx.com |
Introduction to Vitis Hardware Acceleration¶
Version: Vitis 2021.2
Xilinx FPGAs and Versal ACAP devices are uniquely suitable for low-latency acceleration of high performance algorithms and workloads. With the demise of traditional Moore’s Law scaling, design-specific architectures(DSAs) are becoming the tool of choice for developers needing the optimal balance of capability, power, latency, and flexibility. But, approaching FPGA and ACAP development from a purely software background can seem daunting.
With this set of documentation and tutorials, our goal is to provide you with an easy-to-follow, guided introduction to accelerating applications with Xilinx technology. We will begin from the first principles of acceleration: understanding the fundamental architectural approaches, identifying suitable code for acceleration, and interacting with the software APIs for managing memory and interacting with the target device in an optimal way.
This set of documents is intended for use by software developers, it is not a low-level hardware developer’s guide. The topics of RTL coding, low-level FPGA architecture, high-level synthesis optimization, and so on are covered elsewhere in other Xilinx documents. Our goal here is to get you up and running with Vitis quickly, with the confidence to approach your own acceleration goals and grow your familiarity and skill with Xilinx over time.
Provided Design Files¶
In this directory tree you will find a collection of documents and a directory named design_source
.
The design_source
directory contains all of the design elements - hardware and software - for the
tutorial you’re currently reading. The example applications correspond to specific sections in the guide.
Every effort has been made to keep the code samples as concise and “to the point” as possible.
Table of Contents¶
This tutorial is divided into several discrete example desings. Note that each design builds on the last one, so if this is your first time here we recommend proceeding through the tutorial in order.
Acceleration Basics (~10 mins):
An overview of acceleration systems, Alveo, and XRT
See how Vitis takes care of the heavy lifting to let you focus on the application code
Runtime SW Design (~10 mins):
An introduction to memory allocation, and how XRT interacts with your application
-
Initial setup for the following examples:
Example 0: Loading an Alveo Image
Learn how to program an FPGA or ACAP image into the device (in this case an Alveo card) using XRT
Example 1: Simple Memory Allocation
What happens when you don’t put too much thought into it?
Example 2: Aligned Memory Allocation
See the effects of allocating page-aligned memory vs. using standard
malloc()
Example 3: XRT Memory Allocation
Compare using XRT-allocated memory to standard C++ allocators
Example 4: Parallelizing the Data Path
You’ll see the effect of keeping the same host software, but swapping to better hardware
Example 5: Optimizing Compute and Transfer
In this example, we finally beat the CPU! Yay!
Example 6: Meet the Other Shoe
Alas, our victory was short lived! But why?
Example 7: Image Resizing with Vitis Vision
Let’s make a less trivial application. Slightly less.
Example 8: Building Processing Pipelines with Vitis Vision
And now, the true ultimate power of Vitis: pipelines!
Or: How I learned to love FPGAs
Copyright© 2020 Xilinx