Home

Awesome

<img src="./Images/logo2.png" alt="logo2" width="200"/>

Introductory examples for Vitis HLS

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Apache Licence, Version 2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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
AppnotesA DSP design, a legacy digital up converter appnote.Digital_Up_Converter
ArrayShow how to partition memory arrays.array_partition_complete
InterfaceCommon examples for interface protocols.using_axi_master<br> using_axi_lite<br> using_axi_stream_with_side_channel_data
MiscOther examples such as the RTL blackbox flow and the LogiCore FFT from Vivado.fft<br> rtl_as_blackbox
ModellingThe essentials for loops, arbitrary precision types and vectors.basic_loops_primer<br> using_arbitrary_precision_arith<br> using_vectors<br> using_array_stencil_1d
PipeliningIllustrating one of the most fundamental concept of HLS.hier_func<br> pipelined_loop
Task_Level_ParallelismDataflow and free running streams with hls::task.using_stream_of_blocks<br> input_bypass<br> unique_task_regions<br>using_directio_hs_in_tasks

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)

<p class="sphinxhide" align="center"><sub>Copyright © 2020–2024 Advanced Micro Devices, Inc</sub></p> <p class="sphinxhide" align="center"><sup><a href="https://www.amd.com/en/corporate/copyright">Terms and Conditions</a></sup></p>