Check for MATLAB Function block settings
Check ID:
com.mathworks.HDL.ModelChecker.runMLFcnBlkChecks
Check ID:
com.mathworks.HDL.ModelAdvisor.runMLFcnBlkChecks
Check HDL compatible settings for MATLAB Function blocks.
Available with Simulink® and HDL Coder™.
Description
This check displays a warning if your model uses MATLAB Function blocks that have settings not recommended for HDL code generation. The settings include checking whether the MATLAB Function block has:
fimath
settings defined as perhdlfimath
. Thehdlfimath
function usesfimath
settings that are compatible for HDL code generation.Saturate on integer overflow check box cleared.
Results and Recommended Actions
To fix this warning, click Modify Settings and the code generator updates the MATLAB Function block settings to be compatible with HDL code generation.