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
- In above code example
1), the variable
inis the pointer to
- Move to the
invariable 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
- In the Memory window, click on the + sign (step 3) to input the address 0x31e80, as shown in step 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
- 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.