HLS Kernel - 2021.2 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2021-10-22
Version
2021.2 English
This block lets you import an HLS kernel code with a streaming interface.

Library

AI Engine/User-Defined Functions

Description

The HLS Kernel block allows you to import an HLS kernel, which is a proper HLS IP that can be used in Vitis™ HLS and synthesized directly.

Parameters

Parameter Name Parameter Type Criticality Description
Kernel header file String Mandatory The name of the HLS kernel header file that contains the function declaration. The string could be just the file name, a relative path to the file or an absolute path of the file. Use the browse button to select the file.
Kernel function String Mandatory The name of the kernel function in C/C++ for which HLS Kernel block is to be created.
Kernel source file String Mandatory

The name of the source file that contains the kernel function implementation (definition). The string could be just the file name, a relative path to the file or an absolute path of the file.

Specifies the search path for source files (.cc, .hpp) from the MATLAB current folder.

Kernel search paths Vector of Strings Optional

If the kernel header file or the kernel source file is not found using the value provided through the 'Kernel header file' or 'Kernel source file' fields respectively, then the paths provided through 'Kernel search paths' are used to locate the files.

This parameter allows use of environment variables while specifying paths for the kernel header file and the kernel source file. The environment variable can be used in either ${ENV} or $ENV format.

Preprocessor Options   Optional

Optional preprocessor arguments for downstream compilation with specific preprocessor options.

The following two preprocessor option formats will be accepted and multiple can be selected. -Dname and -Dname=definition. That is, the optional argument must begin with the -D string and if the option definition value is not provided, it is assumed to be 1.