The difference between the Synthesizable design and the Simulation example design is the use of the MicroBlaze microprocessor instead of the AXI VIP core as AXI master.
The locked port of AXI4-Stream to Video
Out is connected to axi_gpio_lock core and MicroBlaze polls the corresponding register for a
sign that the test passed.
Because this design runs on hardware, it demonstrates the accuracy of TPG cores running a large video frame.
The synthsizable example design requires both Vivado tools and the Vitis software platform.
The first step is to run synthesis, implementation and bitstream generation in Vivado. After all those steps are done, select . In the window, select Include bitstream, select an export directory and click OK.
The remaining work is performed in the Vitis software platform. The TPG example design file can be found at Vitis directory: (<install_directory>/release/data/embeddedsw/XilinxProcessorIPLib/drivers/v_tpg_v8_3/examples/
Example application design source files (contained within "examples" folder) are tightly coupled with the v_tpg example design available in Vivado Catalog.
vtpg_example.tcl automates the process of generating the downloadable bit and elf files from the provided example xsa file.
To run the provided Tcl script:
- Copy the exported example design hdf 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
xsct%>source vtpg_example.tcl
- Execute the script
xsct%>vtpg_example <xsa_file_name.xsa>
The Tcl script cript performs the following:
- Create workspace
- Create HW project
- Create BSP
- Create Application Project
- Build BSP and Application Project
After the process is complete, the required files are available in:
bit file->vtpg_example_hw_platform/hw folder elffile vtpg_example.sdk/vtpg_example_design/{Debug/Release} folder
Next, perform the following steps to run the software application:
- Launch the Vitis software platform.
- Set workspace to vtpg_example.SDK folder in prompted window. The Vitis project opens automatically. (If a welcome page shows up, close that page.)
- 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 Tcl script, and then click Program.Note: The DONE LED on the board turns green if the programming is successful.
- A terminal program (Hyper Terminal or PuTTY) is needed for UART communication. Open the program, choose appropriate port, set baud rate to 115200 and establish Serial port connection.
- Select and right-click the application vtpg_example_design in Project_Explorer panel.
- Select .
- Select Binaries and Qualifier in window and click OK.
The example design test results are shown in terminal program.
For more information, visit https://www.xilinx.com/products/design-tools/vitis.html.
When executed on the board, the example application performs the following:
- Program Video Clock Generator to 1080p@60 Hz
- Program TPG0 and TPG1 to 1080p@60 Hz
- Check for Video Lock and report the status (PASS/FAIL) on UART
- Repeat Steps 1-3 for 4 KP@30 Hz and 4 KP@60 Hz