MATLAB: Error while generating HDL code from Matlab: MATLAB for code generation only supports SumModes ‘SpecifyPrecision’ and ‘KeepLSB’ for ‘MTIMES’ when the size of the inputs can vary at run-time.

Fixed-Point DesignerHDL Coderhdlcodersummodes

While trying to generate Verilog file using HDL coder, I got the above error in the 'fixed-point' file in the Validation Results sections. Kindly help me resolve the issue.

Best Answer

As the error suggests, try changing the 'Sum mode' under the advanced settings. The image shows where to set this while using the Workflow Advisor.