The HDL compatibility checker lets you check whether a subsystem or model is compatible with HDL code generation. You can run the compatibility checker from the command line or from the GUI.
To run the compatibility checker from the command line, use
the checkhdl
function. The syntax of the function
is
checkhdl('system')
where system
is the device under
test (DUT), typically a subsystem within the current model.
To run the compatibility checker from the GUI:
Open the Configuration Parameters dialog box or the Model Explorer. Select the HDL Code Generation pane.
Select the subsystem you want to check from the Generate HDL for list.
Click the Run Compatibility Checker button.
The HDL compatibility checker examines the specified system
for compatibility problems, such as use of unsupported blocks, illegal
data type usage, etc. The HDL compatibility checker generates an HDL
Code Generation Check Report, which is stored in the target folder.
The report file naming convention is
,
where system
_report.htmlsystem
is the name of the subsystem
or model passed to the HDL compatibility checker.
The HDL Code Generation Check Report is displayed in a MATLAB® web browser window. Each entry in the HDL Code Generation Check Report is hyperlinked to the block or subsystem that caused the problem. When you click the hyperlink, the block of interest highlights and displays (provided that the model referenced by the report is open).
The following figure shows an HDL Code Generation Check Report that was generated for a subsystem with a Product block that was configured with a mixture of double and integer port data types. This configuration is legal in a model, but incompatible with HDL code generation.
When you click the hyperlink in the left column, the subsystem containing the offending block opens. The block of interest is highlighted, as shown in the following figure.
The following figure shows an HDL Code Generation Check Report that was generated for a subsystem that passed its compatibility checks. In this case, the report contains only a hyperlink to the subsystem that was checked.