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.
- Open a Linux terminal.
-
cd
to the <code-generation-directory> directory specified in the Vitis Model Composer Hub block. - 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. - To re-run the entire hardware flow, run
make all
from the bash shell. - 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. - To leave the bash shell and return to the parent shell, run
exit
.