set_top - 2022.1 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2022-06-07
Version
2022.1 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