Skip to content
No description, website, or topics provided.
C C++ Tcl Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
algorithm_2D_convolution_linebuffer Adding all FIles Nov 4, 2019
algorithm_fir_systolic_scalar Adding all FIles Nov 4, 2019
algorithm_fixed_point_sqrt
algorithm_floating_mult_power_of_2 Adding all FIles Nov 4, 2019
algorithm_template_fir_filter Adding all FIles Nov 4, 2019
algorithm_window_function_fixed_point Adding all FIles Nov 4, 2019
algorithm_window_function_float Adding all FIles Nov 4, 2019
coding_C++_templates Adding all FIles Nov 4, 2019
coding_arbitrary_precision_arith Adding all FIles Nov 4, 2019
coding_arbitrary_precision_casting Adding all FIles Nov 4, 2019
coding_dataflow_rewind Adding all FIles Nov 4, 2019
coding_fixed_point Adding all FIles Nov 4, 2019
coding_hierarchy_func Adding all FIles Nov 4, 2019
coding_hierarchy_func2 Adding all FIles Nov 4, 2019
coding_hierarchy_func3 Adding all FIles Nov 4, 2019
coding_hierarchy_func4 Adding all FIles Nov 4, 2019
coding_loop_functions Adding all FIles Nov 4, 2019
coding_loop_imperfect
coding_loop_labels Adding all FIles Nov 4, 2019
coding_loop_max_bound_trick Adding all FIles Nov 4, 2019
coding_loop_perfect Adding all FIles Nov 4, 2019
coding_loop_pipeline Adding all FIles Nov 4, 2019
coding_loop_sequential Adding all FIles Nov 4, 2019
coding_loop_sequential_assert Adding all FIles Nov 4, 2019
coding_loop_sequential_dataflow
coding_loop_variable_bound
coding_malloc_removed Adding all FIles Nov 4, 2019
coding_pointer_arith Adding all FIles Nov 4, 2019
coding_pointer_basic Adding all FIles Nov 4, 2019
coding_pointer_cast_native Adding all FIles Nov 4, 2019
coding_pointer_double Adding all FIles Nov 4, 2019
coding_pointer_multi Adding all FIles Nov 4, 2019
coding_pointer_stream_better Adding all FIles Nov 4, 2019
coding_pointer_stream_good
coding_remerge_ii2to1 Adding all FIles Nov 4, 2019
images Adding all FIles Nov 4, 2019
interface_axi_lite Adding all FIles Nov 4, 2019
interface_axi_master Adding all FIles Nov 4, 2019
interface_axi_stream_no_side_channel_data Adding all FIles Nov 4, 2019
interface_axi_stream_side_channel_data
interface_hls_stream Adding all FIles Nov 4, 2019
memory_bottleneck
memory_bottleneck_resolved Adding all FIles Nov 4, 2019
memory_rom_coef_filter Adding all FIles Nov 4, 2019
memory_rom_lookup_table
memory_rom_lookup_table_math Adding all FIles Nov 4, 2019
memory_ultraram Adding all FIles Nov 4, 2019
misc_rtl_as_blackbox
LICENSE.txt Adding all FIles Nov 4, 2019
README.md Adding all FIles Nov 4, 2019

README.md

logo

Basic examples for Vitis HLS

Copyright 2019 Xilinx, Inc.

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

http://www.apache.org/licenses/LICENSE-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 includes code sources for top function and testbench, a README, Tcl files. They are organized in categories denoted by the prefix of the directory in which they reside:

  • Coding: Common coding styles for pointers, loops, arrays, etc...
  • Algorithm: Math and DSP examples
  • Interface: Manage block connectivity to other blocks
  • Misc.: Other examples such are RTL blackbox in C++

Running the examples

Two Tcl files are provided:

  • x_hls.tcl: Specifies what steps of the flow will be executed (by default only C simulation and C synthesis are run). By changing the value of hls_exec it's possible to run C-RTL co-simulation and Vivado implementation
  • run_hls.tcl: Sets up the project and sources x_hls.tcl mentioned above

To run at the command line, navigate to the example directory, type: vitis_hls -f run_hls.tcl

To load the design into the HLS GUI, "Open"->"Project file" and select the project directory

You can’t perform that action at this time.