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.topcommand 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
-
syn.topin HLS General Options