- Invoke Vitis HLS: Click .
- Select Open Project in the welcome
screen and navigate to the Vitis HLS project
directory \HDL_Library\Lab2\C_code\hls_project as shown in the following
figure.
- Click Select Folder to open the project.
- Expand the Source folder in the Explorer pane (left-hand side) and double-click the file
MedianFilter.cpp to view the contents of the C++ file
as shown in the following figure.
This file implements a 2-Dimensional median filter on 3x3 window size.
- Synthesize the source file by right-clicking on solution1 and selecting
When the synthesis completes, Vitis HLS displays this message:Finished C synthesis
Now you will package the source for use in Model Composer.
as shown in the following figure. - Right-click solution1 and select Export RTL.
- Set Format Selection to Vivado IP for System
Generator as shown in the following figure and click OK.
When the Export RTL process completes, Vitis HLS displays this message:
Finished export RTL
- Exit Vitis HLS.