Part 2: Including a Vitis HLS Package in a Model Composer Design - 2021.1 English

Vitis Model Composer Tutorial: (UG1498)

Document ID
UG1498
Release Date
2021-07-16
Version
2021.1 English
  1. Launch Model Composer and open the Lab2_3.slx file in the Lab2/C_code folder. This should open the model as shown in the following figure.

  2. Add a Vitis HLS block:
    1. Right-click anywhere on the canvas workspace.
    2. Select Xilinx BlockAdd.
    3. Type Vitis HLS in the Add block dialog box.
    4. Select Vitis HLS as shown in the following figure.


  3. Double-click the Vitis HLS block to open the Properties Editor.
  4. Use the Browse button to select the solution created by Vitis HLS in Step 1, at \HDL_Library\Lab2\C_code\hls_project\solution1, as shown in the following figure.
  5. Click OK to import the Vitis HLS IP.

  6. Connect the input and output ports of the block as shown in the following figure.

  7. Navigate into the Noisy Image sub-system and double-click the Image From File block to open the Block Parameters dialog box.
  8. Use the Browse button to ensure the file name correctly points to the file xilinx_logo.jpg as shown in the following figure.

  9. Click OK to exit the Block Parameters dialog box.
  10. Use the Up to Parent toolbar button to return to the top level.
  11. Save the design.
  12. Simulate the design and verify the image is filtered, as shown in the following figures.