Create a Vector-Addition application - 2023.2 English

Vitis Tutorials: Vitis Platform Creation (XD101)

Document ID
XD101
Release Date
2023-12-26
Version
2023.2 English
  1. Launch the Vitis platform.

    mkdir -p ref_files/step3_verify
    cd ref_files/step3_verify
    vitis -workspace ./ &
    

    Close the welcome tab after Vitis launches.

  2. Add a custom platform.

    1. Select Xilinx -> Add custom platform….

    2. Click the add button.

    3. Select the directory that step2 generates. For example ref_files/step2_sw/pfm.

    4. Click OK.

  3. Create vector addition application on the custom platform.

    1. Select File -> New -> Application Project.

    2. Go through the welcome page and click Next.

    3. On the Platform page, select the vck190_custom_dfx platform in the platform list. Click Next.

    4. Set Application project name to the vadd, target processor psv_cortexa72_SMP. Click Next.

      missing image

    5. Input Sysroot path (step2_sw/build/sw_comp/sysroots/cortexa72-cortexa53-xilinx-linux)

    6. Input RootFS path (step2_sw/build/sw_comp/rootfs.ext4)

    7. Input Kernel Image path (step2_sw/build/sw_comp/Image). These components were prepared in step 2. Click Next.

    8. Select template Vector Addition. Click Finish.

  4. Build the vector addition application for hardware emulation.

    Note: Skip this step if you are updating the code to support hardware emulation.

    1. Select the vadd_system project.

    2. Click the drop-down of Build hammer icon on the tool bar, select Emulation-HW. Alternatively, this step can be done by selecting Active Build Configuration to Emulation HW and clicking the build icon.

    3. If a dialogue box opens and asks whether to clean the project, select Don’t clean.

  5. Build the vector addition application for hardware.

    1. Select the vadd_system project.

    2. Click the drop-down of Build hammer icon on the tool bar, select Hardware. Alternatively, this step can be done by selecting Active Build Configuration to Hardware and clicking the build icon.

    It takes some time to build the hardware. Finally the Vitis tool will generate an sd_card.img file in the vadd_system/Hardware/package directory.