set_part

Description

Sets a target device for the current solution.

The command can be executed only in the context of an active solution.

Syntax

set_part <device_specification>
  • <device_specification> is a device specification that sets the target device for Vitis HLS synthesis and implementation.
  • Specifying the device by <device_family> uses the default device for the device family.
  • <device><package><speed_grade> is the target device name including device, package, and speed-grade information.

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