Create and Build Platform Component - Create and Build Platform Component - 2026.1 English - UG1702

Vitis Reference Guide (UG1702)

Document ID
UG1702
Release Date
2026-06-23
Version
2026.1 English

The Vitis Unified IDEsupports Python APIs to create and build the platform component. The Vitis Unified IDE creates the platform component (.xpfm) from extensible XSA and the operation system's software files. The platform component with no system software files for any operating system runs the baremetal applications.

Table 1. Python APIs: Platform Component
Python API Description Python API Example
create_platform_component Creates a new platform

For Baremetal: platform_comp=client.create_platform_component(name='platform', hw_design=<hw_xsa_path>)

For Linux: client.create_platform_component(name = platform_name, hw_design = <hw_xsa_path>, cpu = "psu_cortexa53", os = "linux", domain_name = "linux_a53")

add_domain Adds the domain to the platform microblaze = platform.add_domain(name = "microblaze", cpu = "microblaze_0", os = "standalone")
build Initiates a build of platform component platorm_comp.build()
See the Python script below to create a platform component for the baremetal application.
# Add package: Vitis Python CLI
import vitis

# Create a Vitis client object -
client = vitis.create_client()

# Set Vitis Workspace
client.set_workspace(path=<workspace_location>)

# Create Platform Component:
platform_comp=client.create_platform_component(name='platform', hw_design=<hw_extensible_xsa_path>)

# Build the platform component
platform_comp.build()

After building the platform component, the output products are at the following location. workspace > platform > export > platform > platform.xpfm