Viewing Data from Stream Interfaces - Viewing Data from Stream Interfaces - 2026.1 English - UG1702

Vitis Reference Guide (UG1702)

Document ID
UG1702
Release Date
2026-06-23
Version
2026.1 English

Data flows into and out of an AI Engine kernel through access windows, or a stream interface. In the case of data windows, the Vitis Unified IDE debug environment provides methods to view and access the data. See Viewing Data from Buffer Port Interfaces.

For stream interface connections, add printf() statements to your code so you can examine data passing through the kernel.

Important: Adding printf() statements to the code suppresses compiler optimizations and results in a larger kernel executable program. It is possible for the program to not fit into the available memory of the AI Engine processor.

When adding printf() statement in your kernel code, you must select Enable Profile in the launch configuration for Debug. You can also select the cores for which you need to enable profiling. By default, the tool selects all cores.

When adding the printf() statement in your kernel code, you must also add the --profile option in the Run Configurations. You can also add it to the Debug Configurations dialog box in the Vitis IDE. Add --profile to the Arguments tab of the Debug Configuration.

Figure 1. Enable Profiling

Adding printf() statements to your source code results in the output of streaming data that the kernel processes. The following figure shows an example of such output in the console window. This provides visibility to capture and debug the dataflow through streaming interfaces.

Figure 2. Printing Data from Stream Interfaces