Generating the Hardware Image Outside the MATLAB Environment - 2022.1 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2022-05-26
Version
2022.1 English
When Generate Hardware Image is selected from the Hub block and the Generate button is clicked, the process can take some time, especially when the image is being built for the first time. This may stall that particular MATLAB session for any other work. To avoid this, you can generate the image outside of MATLAB such that the MATLAB session remains free for other work.

To generate the image outside of the MATLAB session, follow these steps:

  1. Generate code without selecting the Generate Hardware Image check box in the Hub block. Make sure you select the HDL if your design has HDL blocks. If your design has HLS Kernel blocks, there is no need to check the HLS row. This will generate the code needed to generate the Hardware Image, but will not execute them.

  2. Open a Linux terminal and ensure the $XILINX_VITIS environment variable is set.
    Note: Source the script settings64.sh from <Model Composer Install directory>/Model_Composer/<Version>/settings64.sh in order to setup the XILINX_VITIS environment.
  3. cd to the <code-generation-directory>/run_hw directory.
  4. From the Linux terminal, run ./run_hw.sh.