set_part - 2022.1 English

Vitis High-Level Synthesis User Guide (UG1399)

Document ID
UG1399
Release Date
2022-06-07
Version
2022.1 English

Description

Sets a target device, device family, or board for the current solution. The command can be executed only in the context of an active solution.

Tip: Each solution in a project can target a separate device or device family.

Syntax

set_part <device_specification>
  • <device_specification> is a device specification that sets the target device for Vitis HLS synthesis and implementation.
  • The device specification includes <device>, <package>, and <speed_grade> information.
  • Specifying the <device_family> uses the default device for the device family.

Options

-board
Specify the part as defined on a board.

Examples

The FPGA libraries provided with Vitis HLS can be added to the current solution by providing the device family name as shown below. In this case, the default device, package, and speed grade specified in the Vitis HLS FPGA library for the Virtex-7 device family are used.
set_part virtex7

The FPGA libraries provided with Vitis HLS can optionally specify the specific device with package and speed grade information.

set_part xc6vlx240tff1156-1

Specifies the part through the definition of a board.

set_part -board u200