Running the Hardware Flow Outside the MATLAB Environment - 2024.1 English

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2024-05-30
Version
2024.1 English
When you perform any tasks in the Vitis Model Composer Hub block that involve code generation (including Analyze, Validate on Hardware, and Export), Model Composer generates Makefiles that allow you to re-run various design steps outside of Vitis Model Composer. This can allow you to run design iterations more quickly. It can also free up your MATLAB session for other work.
  1. Open a Linux terminal.
  2. cd to the <code-generation-directory> directory specified in the Vitis Model Composer Hub block.
  3. From the Linux terminal, run source setup.sh. This opens a bash shell configured with the environment variables needed to run the tools involved in the hardware flow.
  4. To re-run the entire hardware flow, run make all from the bash shell.
  5. You can also re-run individual steps (targets) in the build process. Each directory in the code generation directory contains its own Makefile. To see which targets are available in a Makefile, run make help. Note that some targets depend on other targets; this information is contained within each Makefile.
  6. To leave the bash shell and return to the parent shell, run exit.