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.
- Open a Linux terminal.
-
cdto 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 allfrom 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.