syn.directive.top - syn.directive.top - 2026.1 English - UG1399

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2026-06-23
Version
2026.1 English

Description

Attaches a name to a function. set_top sets the named function as the top to synthesize member functions of a class in C++.

Syntax

syn.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 syn.top command as described in HLS General Options.

Examples

Function foo_long_name renames to DESIGN_TOP. Specify the top-level as DESIGN_TOP. If the pragma is in the code, you must issue the set_top in the GUI via project settings.

syn.directive.top=name=DESIGN_TOP foo_long_name

Followed by the syn.top=DESIGN_TOP command.

See Also