set_top - 2023.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2023-12-18
Version
2023.2 English

Description

Defines the top-level function to be synthesized.

Important: Any functions called from the top-level function will also become part of the HLS design.

Syntax

set_top <name>
  • <name> is the function to be synthesized by HLS.

Options

This command has no options.

Examples

Sets the top-level function as foo.

set_top foo