Description
Attaches a name to a function. The name 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
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.topcommand as described in HLS General Options.
Examples
Function foo_long_name renames to
DESIGN_TOP. The top-level is then specified as
DESIGN_TOP. 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.
syn.directive.top=name=DESIGN_TOP foo_long_name
Followed by the syn.top=DESIGN_TOP
command.
See Also
-
syn.topin HLS General Options