![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173003/image.png)
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.
7 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
采纳的回答
Anish Mitra
2016-2-24
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/173003/image.png)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Fixed-Point Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!