- Open the Vitis application. Set workspace path by selecting .
- Create the platform component by selecting .
- Enter the Component name and Component location in the pop-up window and click Next.
- Select the required XSA.
- Select the Operating System, Processor, and Compiler.
- Review the summary and click Finish.
- Once the platform component is created, switch to the welcome panel, and select the Create Empty Embedded Application option in .
- Choose the Component name and Component location in the pop-up window. Select Next.
- Select the required Platform in the hardware tab and click Next.
- Choose the domain from the available domains.
- Add source files or skip for now, review the summary, and click Finish.
- If skipped in the previous step, import the source files into the app
component by right clicking on sources and selecting
. - Import the required files.
- Build the project by selecting Yes. . When prompted for Platform build, select
- Once the build is complete, check the Output folder for the elf file.
The example application design source files (contained within the examples folder) are tightly coupled with the example design available in Vivado Catalog.
The v_frmbuf_rd_example.tcl and v_frmbuf_wr_example.tcl files automate the process of generating the downloadable bit and elf files from the provided example HDF file.
To run the provided Tcl script:
- Copy the exported example design xsa file in the examples directory of the driver.
- Launch the AMD Software Command-Line Tool (xsct) terminal.
- cd into the examples directory.
- Source the tcl file in xsct:
%>source vfrmbuf_xx_example.tcl
, where xx is rd for Video Frame Buffer Read and wr for Video Frame Buffer Write. - Execute the script: xsct%>vfrmbuf_xx_example <xsa_file_name.xsa>
The Tcl script performs the following:
- Create workspace
- Create hardware project
- Create Board Support Package
- Create Application Project
- Build BSP and Application Project
After the process is complete, the required files are available in:
bit file -> v_frmbuf_xx_exa/ folder.elf file -> v_frmbuf_xx_ex/sdk/xv_frmbuf_xx_example_1/{Debug/Release} folder.
Next, perform the following steps to run the software application:
Important: To do so, ensure that the hardware is powered on and a Digilent
Cable or a USB Platform Cable is connected to the host PC. Also, ensure that a USB
cable is connected to the UART port of the KC705 board.
- Launch the Vitis software platform.
- Set workspace to vfrmbuf_xx_example.sdk folder in prompted window. The SDK project opens automatically. (If a welcome page displays, close it.)
- Download the bitstream into the FPGA by selecting . The Program FPGA dialog box opens.
- Ensure that the Bitstream field shows the bitstream file
generated by the Tcl script, then click Program.Note: The DONE LED on the board turns green if the programming is successful.
- A terminal program (such as Hyper Terminal or Putty) is needed for UART communication. Open the program, choose the appropriate port, set the baud rate to 115200, and establish a Serial port connection.
- Select and right-click the application vfrmbuf_xx_example_design in the Project_Explorer panel.
- Select .
- Select Binaries and Qualifier in the window and click OK.The example design test results are shown in the terminal program.