Vitis Classic workspace to Unified workspace Migration Demo - 2024.1 English

Vitis Tutorials: Embedded Software (XD260)

Document ID
XD260
Release Date
2024-06-19
Version
2024.1 English

There is a script supplied in this tutorial that will build a Vitis Classic Workspace. Follow the steps below to generate this workspace

Launch XSCT, and use the command below

cd scripts
source ./vitis_classic.tcl

This will create the classic_workspace workspace. Launch Vitis Classic, and navigate to the workspace created above.

The script above will set the app C/C++ build settings with an EXAMPLE_SYMBOL.

../../../_images/symbol.PNG

To test the BSP settings, the script will update the extra_compiler_option in the BSP to append the “-pg” option.

../../../_images/extra.PNG

I also added the xilffs library to the BSP.

../../../_images/xilffs.PNG

Note: These are just for demonstration purposes.

Follow the steps below to migrate this Classic workspace to Unified workspace.

Vitis -> Export Workspace to Unified IDE

../../../_images/export.PNG

Choose the Vitis Unified workspace location.

../../../_images/migration.PNG

This will generate a migration.py python script that can be opened in the Vitis Unified IDE. First, close Vitis Classic IDE and follow the steps below.

cd path/to/unified_workspace
vitis -s migration.py

Once the script is complete, launch the Vitis Unified IDE and set the workspace to the newly generate unified_workspace.

Open the UserConfig.cmake as shown below to verify that the symbol has been migrated.

../../../_images/unified_symbol.PNG

Open the Vitis-comp.json as shown below to verify that the xilfss driver is migrated.

../../../_images/unified_xilffs.PNG

Open the Vitis-comp.json as drop the psu_cortexa53_0 and verify that the proc_extra_compiler_flags is appended as expected with “-pg”.

../../../_images/unified_extra.PNG