Main Content

Check for large matrix operations

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

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

Check for large matrix operations.

Description

This check displays a warning if your design contains:

  • Signals with matrix types that have more than two dimensions. HDL code generation supports matrix types that have a maximum of two dimensions.

  • Large matrix operations with Add, Sum, or Product blocks that result in a matrix output with more than ten elements. Synthesizing the generated HDL code from such a design can result in the utilization of large number of resources on the target FPGA. For more details, see the "HDL Code Generation" sections of the block reference pages.

Results and Recommended Actions

To fix this warning, update your design so that there are no matrix types with more than two dimensions and the result of a matrix operation does not produce an output with more than ten elements. To verify that the check passes, compile the design and rerun the check.

See Also