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:
- 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.
- 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 theXILINX_VITIS
environment. - cd to the <code-generation-directory>/run_hw directory.
- From the Linux terminal, run
./run_hw.sh
.