Generating the Hardware Image outside the MATLAB Environment - 2021.2 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2021-10-22
Version
2021.2 English

When Generate Hardware Image is selected from the Model Composer Hub block and the Generate and Run button is clicked, the process can take some time, especially when the BOOT.BIN is being built for the first time. This may stall that particular MATLAB session for any other work. In this case it might be desirable to generate the BOOT.BIN outside of MATLAB, such that the MATLAB session remains free for other work.

To generate BOOT.BIN outside of the MATLAB session, follow these steps:
  1. Generate code without selecting the Generate Hardware Image check box in the Hub block. This means:
      • If the design contains HDL blocks, generate the netlist from the System Generator token block.
      • Generate code for AIE and HLS blocks from the Model Composer Hub blocks. Specify a valid platform from the Hardware tab and select the Target as AI Engines. Select the Create testbench check box on the Code Generation tab, but do not select the Generate Hardware Image check box.
  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 variable. (For cshell, source the settings64.csh file)
  3. cd to <code-generation-directory>/run_hw directory.
  4. From the linux terminal run ./run_hw.sh.