To edit the settings for the hardware functions, expand the build
target for the kernels project in the Assistant view, select the hardware function, and click
the Settings button (). This
displays the Hardware Function
Settings dialog box as shown in the following figure.
Tip: Notice in the
figure below that the
dct
kernel (or hardware
function) is selected for the Emulation-HW
build
target of the hardware kernels project (dct_project_kernels
). Figure 1. Hardware Function Settings
This dialog box lets you set options related to the hardware
function, and the v++
compilation process for the
selected build target. Specific options include:
- Stall Profiling
- Enables the
--profile.stall
option for the kernel as explained in --profile Options. - Max memory ports
- For OpenCL kernels,
when enabled, generates a separate physical memory interface (
m_axi
) for every global memory buffer declared in the kernel function signature. If not enabled, a single physical memory interface is created for the memory mapped kernel ports. - Port data width
- For OpenCL kernels, specify the width of the data port.
- Extra source files
- Define any additional source files required by this hardware function, such as input data files.
- V++ compiler options
- Specify Vitis compiler options for the selected hardware function.
- Supported targets
- Specify which of the three build targets you are defining in the Hardware Function Settings dialog box. You can select one or all build targets.
- Kernel Arguments
- Displays the names and attributes of the arguments of the hardware kernel.
- V++ Compiler Command Line
- Displays the current
v++
command line with any compilation options you have specified.
Tip: The settings
specified by the Hardware Function
Settings dialog box are written to a configuration file
used by the Vitis compiler with the
--config
option as described in Vitis Compiler Configuration File. The configuration file is a link; when you place
your mouse over the link, it displays the contents of the configuration file.