The following illustrates how to view the value of data passing through the kernel during debug. You can trace through objects and observe data stored in the designated memory location from the Vitis Unified IDE.
Figure 1. Tracing Data in Vitis unified
IDE
- Step 1 in the figure shows that the variable
cb_inputis the reference toinput_bufferof typecint16. - In Step 2, move to the
cb_inputvariable in the Variables view. 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 that the buffer data structures passed to them as arguments. The input buffer port holds the data. Examine the address of the variablecb_input, which is at address0x32000. - In Step 3, enable the Memory
Inspector window at the top right. Click the + sign to input the address
0x32000. - In Step 4, the Memory window
displays the content at address
0x32000. This is the data contained in the data access buffer port defined by thecb_input0variable. - This example has 16 elements as the margin size and each element is
cint16type, so the actual data starts from0x32000 + 0x40 = 0x32040. You can examine the data contents and export it to a file. You can also hover your mouse on the hexadecimal values to display it in a specific data format.
Note: You can click the Debug command and drag
it from the left side Tool Bar menu to the bottom middle and drop it inside the space
where you have the Debug console. This helps in
viewing the variables in expanded view by clicking on Arrow button as shown in the
following figure. You can drag it back to the left side at any time.
Figure 2. Rearranging Windows