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.
| Python API | Description | Python API Example |
|---|---|---|
create_platform_component
|
Creates a new platform |
For Baremetal:
For Linux: |
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()
|
# 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