Viewing Data from Buffer Port Interfaces - 2023.1 English

AI Engine Tools and Flows User Guide (UG1076)

Document ID
UG1076
Release Date
2023-06-23
Version
2023.1 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 in0 is the reference to input_buffer of type int32.
  2. Move to the in0 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 buffer data structures passed to them as arguments. The input buffer port holds the data. Examine the address of the variable in0. It is at address 0x68000.
  3. In the Memory window, click on the + sign (step 3) to input the address 0x68000, as shown in step 4.
  4. The Memory window displays the content at address of 0x68000 (step 5). This is the data contained in the data access buffer port defined by the in0 variable.
  5. This example has 8 elements as the margin size and each element is int32 type, so the actual data starts from 0x68000 + 0x20 = 0x68020. 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.