Create a new custom compilation target by running the following helper function.
xilinx.environment.addCompilationTarget(target_name, directory_name)
For example, consider the following command:
xilinx.environment.addCompilationTarget('Impl', 'U:\demo')
Figure 1. Helper Function
When you enter this command in the MATLAB Command Window as shown above, the following happens:
- A folder is created named
Impl/@Impl
in U:\demo. - Inside the folder, a template class file
Impl
is created (Impl.m), which is derived from the base classxilinx_compilation
. At this point, if no modifications are made to the file, the newly createdImpl
compilation target acts the same as the HDL Netlist compilation target. The content of the Impl.m file is shown in the following figure.
- The helper function then adds U:\demo\Impl to the MATLAB path,
so that the new class
Impl
can be discovered by MATLAB.
Note: Be aware that the
target_name
cannot contain spaces. After the class is
created, you can add spaces to the target_name
property
of the class.