Export Hardware XSA - Export Hardware XSA - 2025.2 English - XD101

Vitis Tutorials: Platform Creation (XD101)

Document_ID
XD101
Release_Date
2025-12-11
Version
2025.2 English
  1. Validate the block design by clicking Validate Design button

    • There should be only one interrupt controller related Critical Warning in the above design, because intr is floating and v++ will be responsible to connect it during acceleration application compiling.

      [BD 41-759] The input pins (listed below) are either not connected or do not have a source port, and they don't have a tie-off specified. These pins are tied-off to all 0's to avoid error in Implementation flow.
      Please check your design and connect them as needed: 
      /axi_intc_0/intr
      
  2. Update the module wrapper file.

    Because you have changed the block design, the top module wrapper file should be updated.

    • In Sources tab, right-click the ext_platform_part_wrapper file.

    • Select Remove file from project and slect also delete the project local file form disk and click OK.

      STEP1

    • Right-click ext_platform_part.bd in Design Sources group.

    • Select Create HDL Wrapper….

    • Select Let Vivado manage wrapper and auto-update.

    • Click OK to generate wrapper for block design.

  3. Select Generate Block Design from Flow Navigator. Set Synthesis Options to Global. It will skip IP synthesis during generation. Then, click Generate.

  4. Export hardware platform with the following scripts

    • Click File -> Export -> Export Platform. Alternative ways are: Flow Navigator window: IP Integrator -> Export Platform, or the Export Platform button on the bottom of Platform Setup tab.

    • Click Next on Export Hardware Platform page.

    • Select Hardware. If there are any IP that doesn’t support simulation, we need to generate Hardware XSA and Hardware Emulation XSA separately. Click Next

    • Select Pre-synthesis, because we’re not making an DFX platform. Click Next

    • Keep it as it is in Platform properties setup dialog, click Next

    • Input XSA file name to custom_hardware_platform_hw, click Next.

    • Review the summary. Click Finish.

    • custom_hardware_platform_hw.xsa file will be generated in custom_hardware_platform directory.

    Rerun the Export Platform wizard again, and export the XSA for hardware emulation.

    • Click File -> Export -> Export Platform. Alternative ways are: Flow Navigator window: IP Integrator -> Export Platform, or the Export Platform button on the bottom of Platform Setup tab.

    • Click Next on Export Hardware Platform page

    • Select Hardware emulation. If there are any IP that doesn’t support simulation, we need to generate Hardware XSA and Hardware Emulation XSA separately. Click Next

    • Select Pre-synthesis, because we’re not making an DFX platform. Click Next

    • Keep it as it is in Platform properties setup dialog, click Next

    • Input XSA file name to custom_hardware_platform_hwemu, click Next.

    • Review the summary. Click Finish. custom_hardware_platform_hwemu.xsa file will be generated in custom_hardware_platform directory.

    You can also execute the following scripts to export the platform.

    # Setting platform properties
    set_property pfm_name {xilinx:vck190_es:VCK190_Custom_Platform:0.0} [get_files -norecurse *.bd]
    set_property platform.default_output_type "sd_card" [current_project]
    set_property platform.design_intent.embedded "true" [current_project]
    set_property platform.design_intent.server_managed "false" [current_project]
    set_property platform.design_intent.external_host "false" [current_project]
    set_property platform.design_intent.datacenter "false" [current_project]
    # Export Expandable XSA with PDI
    write_hw_platform -hw -force -file ./custom_hardware_platform_hw.xsa
    write_hw_platform -hw_emu -force -file ./custom_hardware_platform_hwemu.xsa