主要内容

Check top-level subsystem/port names

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

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

Check top-level module/entity and port names.

Description

This check verifies whether top-level module/entity and port names are of the same case and less than or equal to 16 characters in length. This check corresponds to rule 1.A.A.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 updates the top-level module/entity and port names to be of the same case and less than or equal to 16 characters. Names longer than 16 characters are truncated to fit within 16 characters in length.

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.A.9 of Basic Coding Practices.