set_directive_top - 2021.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
ft:locale
English (United States)
Release Date
2021-12-15
Version
2021.2 English

Description

Attaches a name to a function, which can then be used by the set_top command to set the named function as the top. This is typically used to synthesize member functions of a class in C++.

Syntax

set_directive_top [OPTIONS] <location>
  • <location> is the function to be renamed.

Options

-name <string>
Specifies the name of the function to be used by the set_top command.

Examples

Function foo_long_name is renamed to DESIGN_TOP, which is then specified as the top-level. If the pragma is placed in the code, the set_top command must still be issued in the top-level specified in the GUI project settings.

set_directive_top -name DESIGN_TOP foo_long_name

Followed by the set_top DESIGN_TOP command.