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 (step 1), the variable
in0
is the reference toinput_buffer
of typeint32
. - 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 variablein0
. It is at address0x68000
. - In the Memory window, click on the + sign (step 3) to input the address 0x68000, as shown in step 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. - 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.