With all of this completed, we are now in a position to open Vitis and begin to create the platform. From within the pfm directory, run the following commands:
vitis -workspace wksp1
This will open the Vitis GUI. From under the project column, select Create Platform Project.
Vitis welcome screen
This will open a new platform project dialog, enter the project name and click next.
Dialog for project creation
On the next dialog, select the create from hardware specification.
Selecting the platform definititon source
On the next dialog, select the XSA which is under the Vivado directory.
Selecting the XSA
Select the operating system as Linux and Processor as the PSU_Cortexta53.
Defining the SW solution
Completing the dialog will open a platform project in Vitis. To be able to build the application, we need to provide the location of the BIF, boot directory, Linux image and sysroot — all of which are available under the PFM directory.
With the information provided, we can build the application project. This might take a minute or two.
Building the Ultra96 Vitis acceleration platform
Of course, to test the platform we need to create a test application, select new application project and from the available platforms you should be able to see the newly created Ultra96_min project. This project should be defined as being available for embedded and acceleration flow.
Selecting the new platform
For the application, select the demo example, change the target to hardware, and build the application.
This took about 30 minutes on my system.
Acceleration application build completed
We now have a platform which we can use to accelerate our OpenCL applications on for the Ultra96 V2.