Main Content

Check generics

Check ID: com.mathworks.HDL.ModelChecker.runGenericChecks

Check ID: com.mathworks.HDL.ModelAdvisor.runGenericChecks

Check generics at top level subsystem.

Description

This check verifies whether you have generics at the top-level subsystem. If your design uses mask parameters and has the MaskParameterAsGeneric setting enabled, then the top-level subsystem can have generics. This check corresponds to rule 1.A.D.9 of the industry-standard rules.

Available with Simulink®, HDL Coder™, Fixed-Point Designer™, and MATLAB® Coder™.

Results and Recommended Actions

To fix this warning, click Modify Settings and the code generator disables the MaskParameterAsGeneric setting so that there are no generics at the top-level subsystem.

Capabilities and Limitations

  • Runs on library models.

  • Analyzes content in all masked subsystems.

  • Analyzes only the functions that the Simulink model directly references.

See Also

Rule 1.A.D.9 of Basic Coding Practices.