README.md

July 13, 2026 · View on GitHub

AMD Vitis™ HLS Introductory Examples

C/C++ synthesizable examples

Each example comes with C/C++ source code, testbench, a README, and Tcl/Python scripts and/or config file. The examples are organized in categories denoted by the directory names:

CategoryDescriptionKey Examples
DSPShows DSP Intrinsic Library and Vivado LogiCore FFT and FIR usage in Vitis HLS.DSP_Intrinsic_Library
fft
fir/decimator
ArrayShow how to partition memory arrays.array_partition_complete
array_partition_block_cyclic
array_partition_lib_simple
InterfaceCommon examples for interface protocols.using_axi_master
using_axi_lite_with_user_defined_offset
using_axi_stream_with_side_channel_data
unaligned_burst_rgb
ModelingThe essentials for loops, arbitrary precision types and vectors. Condtional control of HLS Pragmas.variable_bound_loops
using_arbitrary_precision_arith
using_vectors
using_array_stencil_1d
conditional_control_of_pragmas
PipeliningIllustrating one of the most fundamental concept of HLS.hier_func
pipelined_loop
Task_Level_ParallelismDataflow and free running streams with hls::task. Autorestart support in testbench.using_stream_of_blocks
autorestart
unique_task_regions
using_directio_hs_in_tasks
MiscOther examples such as the RTL blackbox flow.rtl_as_blackbox
MigrationExamples covering scripted and command-line migration flows to Vitis Unified IDE.tcl_scripts
python_scripts
vitis_unified_cli

Running the example scripts using Vitis Unified IDE

Script TypeCommandNotes
Tclvitis-run --mode hls --tcl run_hls.tclOpen the directory containing run_hls.tcl as workspace after running the Tcl script to open in Vitis Unified IDE
Pythonvitis -s run.pyOpen the created directory w as workspace after running the python script to open in Vitis Unified IDE

By default C Simulation, C Synthesis and Co-Simulation are run with both Tcl and Python scripts. Modify respective script to run Implementation and Packaging.

Documentation

Vitis High-Level Synthesis User Guide (UG1399)

Additional Resources

Vitis High-Level Synthesis - Useful Resources

Parallel Programming for FPGAs

Copyright © 2020–2026 Advanced Micro Devices, Inc

Terms and Conditions