Viewing Data from Buffer Port Interfaces - 2022.2 English

AI Engine Tools and Flows User Guide (UG1076)

Document ID
UG1076
Release Date
2022-10-19
Version
2022.2 English

During debug, you want to see the value of data passing through the kernel. In the following figure you can trace through objects and observe data stored in the designated memory location from the Vitis IDE.

Figure 1. Tracing in Vitis IDE
  1. In above code example (step 1), the variable in is the pointer to input_buffer_1d of type int32.
  2. Move to the in variable in the Variables view (step 2). This is the pointer representation of the data access buffer port that holds the input data for the kernel. However, the kernel functions merely operate on pointers to the window data structures passed to them as arguments. The input buffer port holds the data. Examine the address of the variable in. It is at address 0x31e80.
  3. In the Memory window, click on the + sign (step 3) to input the address 0x31e80, as shown in step 4.
  4. The Memory window displays the content at address of 0x31e80 (step 5). This is the data contained in the data access buffer port defined by the in variable.
  5. This example has 32 elements as the margin size and each element is int32 type, so the actual data starts from 0x31e80 + 0x80 = 0x31f00. You can examine the data contents, display it in a specific data format, or copy it to the clipboard and export it to a separate file as described in Using the Debug Environment.