Token-Related Properties and APIs - 2025.2 English - UG1483

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2025-11-20
Version
2025.2 English

setup_sysgen_token()

The Custom Compilation Infrastructure calls this function to populate Model Composer Hub information. You can use any of the following functions related to the Model Composer Hub to set how the token looks by default when the custom target is selected. You can set the fields, their default values and field enablement/disablement using the following Model Composer Hub API functions.

add_part(family, device, speed, package, temperature)

An example of an explicit command is add_part('Kintex7', 'xc7k325t', '-1' , 'fbg676',''). If the part-related APIs are not used, you can select any device from the list.

string target_name

This is a required field that has to be set in the setup_sysgen_token() function.

string hdl

The default value is an empty string. Select Verilog or VHDL. When you set a value to this field, it is disabled for further user selection.

string synth_strategy

The default value is an empty string. When you set a value to this field, it is disabled for further user selection. If this API is used, you need to ensure that the specified strategy exists. Otherwise, results in an error.

string impl_strategy

The default value is an empty string. When you set a value to this field, it is disabled for further user selection. If this API is used, you need to ensure that the specified strategy exists. Otherwise, it results in an error.

string create_tb

The default value is an empty string. The valid options are on or off. When you set a value to this field, it is disabled for further user selection.

string create_iface_doc

The default value is an empty string. The valid options are on or off. When you set a value to this field, it is disabled for further user selection.