Running the Hardware Flow Outside the MATLAB Environment - Running the Hardware Flow Outside the MATLAB Environment - 2023.2 English - UG1483

Vitis Model Composer User Guide (UG1483)

Document ID
UG1483
Release Date
2023-11-15
Version
2023.2 English
When you enable generation of a libadf.a/.xo or hardware validation code from the Vitis Model Composer Hub block and the Generate button is clicked, the process can take some time. This might stall your MATLABĀ® session for any other work. To avoid this, you can re-run the flow outside of MATLAB such that your MATLAB session remains free 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.