set_directive_top

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++.

Note: Specify the directive in an active solution. Use the set_top command with the new name.

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.

See Also