The Vitis unified IDE supports python APIs to
create and build the platform component. The platform component (.xpfm
) is created from extensible XSA and system software files of the
operating system (for example, PetaLinux). The platform component with no system
software files for any operating system is to run 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 generated at:workspace > platform > export > platform > platform.xpfm