Main Content

Check for invalid top level subsystem

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

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

Check for subsystems that cannot be at the top level for HDL code generation.

Available with Simulink® and HDL Coder™.

Description

This check verifies whether your subsystem is a valid design under test (DUT) for generating HDL code. If you use an invalid block for your DUT, such as an Enabled Subsystem, For Each Subsystem, BlackBox Subsystem, Resettable Subsystem, Triggered Subsystem, or Variant Subsystem block, this check displays an error message.

Results and Recommended Actions

To fix this check, place the subsystem inside a valid subsystem block and use that block as the DUT. Then rerun the check.

Capabilities and Limitations

  • Runs on library models

  • Analyzes content in all masked subsystems

  • Allows exclusions of blocks and charts

  • Analyzes only the functions that the Simulink model directly references

  • Does not analyze the content of library linked blocks

See Also