- In the
MATLABĀ®
Command Window,
enter the following
command:
xilinx.environment.addCompilationTarget('Impl', 'demo')
This provides a template derived class in the demo folder for you to edit.
- Open the newly created file demo\Impl\@Impl\Impl.m in the MATLAB Editor.
- Populate the
setup_sysgen_token()
function as per the requirements. Using this approach, you can control how the Model Composer Hub block should look, including the enabled/disabled fields when the user-defined custom compilation is selected.
- Save Impl.m.
- In the MATLAB Current Folder browser, right-click the demo folder and select .
- In the MATLAB
Command Window, enter the
following
command:
xilinx.environment.rehashCompilationTarget
This ensures that the updated class definition of
Impl
is used. - Open the Model Composer Hub block in your model.
- On the Settings pane of your HDL subsystem, ensure Verilog is selected as the Target Language.
- Under Implementation Strategy, select Flow_Quick.
- All the user-specified files and additional Tcl commands to be run
are known before the Vivado IDE project is
created. The next step is to populate the
pre_project_creation()
function as indicated in the following figure.
- In the MATLAB
Command Window, enter the
following
command:
xilinx.environment.rehashCompilationTarget
This ensures that the updated class definition of
Impl
is used. - Close and then re-open the Model Composer Hub block.
- Select Flow_Quick from the list of Implementation strategies.
- On the Export tab, select Impl as the Export Type.
- Click Export. When the process is finished, you can see the implementation results by opening the Vivado IDE project.