- Type the following at the MATLAB command
prompt:
XmcClassExamples();
- Press Enter. A window opens to specify the folder
location to download the examples from GitHub.
- Click Open after choosing the location. Once the download completes, the HTML page opens.
- Click HLS Examples under heading
Table of Contents. This redirects
you to the list of HLS Examples as shown.
- Click the Optical Flow. A description of the example
displays.
- Click Open Design at the top left corner. This opens the example design.
- In the Vitis Model Composer examples dialog box, select optical
flow and click Open example. This opens
the example design.
- Click on the Lucas_Kanade subsystem and press Ctrl+U to look under the mask.
- Right-click on the Lucas-Kanade
subsystem and select to observe the
calculating-roots
block.
Note: This block has been generated using thexmcImportFunction
feature. Its function declaration can be seen by double-clicking on the block.
- To view the function definition of
calculating_roots
, navigate to the current folder in the MATLAB window and double-click on calculating_roots.h.
The setup is now ready for you to debug your C/C++
code. In the next
step, you will see how to debug the code using GDB tool debugger.