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
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
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.
syn.directive.top=name=DESIGN_TOP foo_long_name
Followed by the syn.top=DESIGN_TOP
command.
See Also
-
syn.top
in HLS General Options