Creating a Platform Component from XSA - 2024.1 English

Vitis Unified Software Platform Documentation: Embedded Software Development (UG1400)

Document ID
Release Date
2024.1 English

To create a new platform component in the Vitis Unified integrated design environment (IDE), execute the following steps.

  1. Click the File option in the Vitis Unified IDE and select New Component > Platform.
    Tip: You can also select the Create Platform Component command from the Welcome page.
  2. This opens the Create Platform Component wizard.
    • Enter a Component name and Component location and select Next.
    • Select Browse to locate an XSA file or select to create a platform from existing platform, or use the drop down menu to select the built-in XSA files. The built-in fixed XSA files only contains PS initialization. Click Next.

      Note: If you select to create a platform from an existing platform, it copies the platform you specified to your current workspace.
      Note: If you want to support emulation, expand Emulation and select Browse to locate an emulation XSA file.
      Note: The created platform type is determined by the input hardware design type. If the input hardware design is a fixed XSA, a platform for an embedded design is created. If the input hardware design is an extensible XSA, the created platform is extensible platform.
      Note: SDTgen is a built-in tool within the Vitis Unified IDE. It is responsible for reading the XSA file and generating the SDT (system device tree) files. Another built-in tool, Lopper, then parses the SDT and generates the corresponding BSP (Board Support Package) file. To facilitate user debugging of this process and to take advantage of the SDT flow, Advanced options have been introduced. These options allow you to switch to a custom version SDTgen tool. There are also two options to add board-level and user-defined DTS (Device Tree Source) files.
    • After selecting the XSA, the tool reads the XSA and identifies the available processors and operating system domains. Specify the Operating system, and the Processor for the platform. and click Next to proceed to the Summary page.

      Note: When you enable the Generate Boot Artifacts and Generate PMU Firmware options, the tool automatically generates both the FSBL (First Stage Boot Loader) and PMU (Platform Management Unit) firmware components required for your platform.
    • The Summary page reflects the choices you have made on the prior pages. Review the summary and select Finish to create the Platform component, or select Back to return to earlier pages and change your selections.
When the Platform component is created the vitis-comp.json file for the component is opened in the central editor window as shown for the Linux platform below.

Depending on the OS you selected for your platform, and possibly the processor you chose as well, the contents of the platform vitis-comp.json can vary.

  • For Linux Operating System: As shown above, you need to specify the Bif file, Boot Component Directory, SD Card Directory and as well as the Qemu data. The Qemu Args file are auto-populated by tool.
  • For standalone (baremetal) OS: No special operation is required.
  • For FreeRTOS: No special operation is required.

After setting, you can build the Platform component by selecting it in the Flow Navigator and selecting the Build command. After compilation is completed, the tool populates the platform and its related software and hardware components in the Output folder of the Platform component in the Component Explorer.