set_top - 2021.2 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
ft:locale
English (United States)
Release Date
2021-12-15
Version
2021.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