HDL Workflow Advisor: Error: Math function square is not supported for HDL code generation
19 次查看(过去 30 天)
显示 更早的评论
I'm trying to generate HDL code from my Simulink fixed point model, but at 2.3 Check Block Compatibility, the HDL Workflow Advisor returns the following error: "Math function square is not supported for HDL code generation". I am using four math function blocks with the squre function. Should the block not support HDL code generation?
The input of the block is a fixed(0,18,10) and the output is a fixed(0,18,5).
0 个评论
回答(1 个)
Navya Seelam
2020-5-14
You can generate HDL for square block in Native Floating Point mode and this can be done by changing Configuration Parameters --> HDL Code Generation--> Floating Point---> Floating Point IP Library . Moreover, the input must be of the data type single.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Compatibility Checks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!