Skip to content

Latest commit

 

History

History

Vitis_HLS

Vitis™ Getting Started Tutorials

See Vitis™ Development Environment on amd.com

Vitis HLS Analysis and Optimization

Version: Vitis 2024.2

Introduction

Vitis High-Level Synthesis (HLS) lets you compile C/C++ code into RTL code for implementation in the programmable logic (PL) region of AMD devices. It is the tool that performs high-level synthesis of the C/C++ code and exports it as either a Vivado IP (.zip) for use in the Vivado Design Suite and the Embedded Software development flow, or as a Vitis kernel (.xo) for use in the Vitis acceleration flow and heterogeneous system designs. Although the Vitis kernel and Vivadp IP flows are similar, there are some fundamental differences as explained in Introduction to Vitis HLS Components. This tutorial demonstrates the Vitis unified IDE flow for the bottom-up development of HLS designs.

Before You Begin

The labs in this tutorial use:

  • BASH Linux shell commands.
  • 2024.2 Vitis core development kit release.

IMPORTANT:

  • Before running any of the examples, make sure you have installed the Vitis core development kit as described in Installation in the Vitis Unified Software Platform Documentation: Application Acceleration Development (UG1393).
  • If you run applications on the AMD Alveo™ Data Center accelerator cards, ensure the card and software drivers have been correctly installed. Check the tools support and platform functionality including lifecycle information in the UG1120.

Setup the environment to run Vitis

To configure the environment to run Vitis, run the following scripts which set up the environment to run in a specific command shell.

source <Vitis_install_path>/Vitis/2024.2/settings64.sh
source /opt/xilinx/xrt/setup.sh

NOTE: .csh scripts are also provided but this tutorial assumes a bash shell is used.

To specify the location of any Data-Center or Embedded platforms you have installed, set the following environment variable:

export PLATFORM_REPO_PATHS=<path to platforms>

NOTE: On some Ubuntu distributions, you must also export LIBRARY_PATH to properly set up Vitis.

export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu

For more information see AMD AR 73698.

Accessing the Tutorial Reference Files

  1. To access the reference files, type the following into a terminal: git clone https://github.com/Xilinx/Vitis-Tutorials.
  2. Navigate to the Getting_Started/Vitis_HLS directory, and then access the reference-files directory.
  3. You may open the HLS project by the following command if you've already sourced the settings script to setup Vitis. But we strongly recommend that you read each step in Next Steps carefully to clearly understand how to create a project from scratch and perform simulation, synthesis and optimization.
vitis -w workspace
  1. The Makefile is provided as a reference if you'd like to explore the CLI flow.

Next Steps

This tutorial describes how to create an HLS component using the Vitis Unified IDE:

  1. Creating the Vitis HLS Project - Create the project to deine the HLS component.

  2. Running High-Level Synthesis and Analyzing Results - Simulate and synthesize the design, and analyze the results.

  3. Using Optimization Techniques - Try different optimization techniques to achieve the initiation interval (II)=1.

  4. Reviewing the Dataflow Optimization - Add the Dataflow optimization to achieve even better results.



Return to Main PageReturn to Getting Started Pathway

Copyright © 2020–2024 Advanced Micro Devices, Inc

Terms and Conditions