HDL Coder returns with error "Unrecognized fixed-point encoding"

3 次查看(过去 30 天)
When running HDL Coder, trying to generate generic RTL, HDL Coder fails returning a cryptic error:
"Unrecognized fixed-point encoding."
It offers no further details. If I click on the associated Simulink Blocks and resources link, it takes me to a whole subsystem, not highlighting any offending blocks. So, I went through all of the blocks in the subsystem, finding nothing wrong with how the fixed point data types are defined.
Does anyone know what exactly this error actually means or how to debug it?
One additional note - I get the same error regardless of whether I generate the code from the HDL Workflow Advisor or Generate HDL for Subsystem context menu.

回答(2 个)

Kiran Kintali
Kiran Kintali 2020-6-26
Hi Tim,
Based on the error message this does not seem to be coming during code generation process. Are you sure you able to compile (ctrl-d) and simulate the model (ctrl-t)?
If you provide a model with reproduction steps we can provide better guidance on HDL code generation.
Thanks
  1 个评论
Tim Nash
Tim Nash 2020-6-30
Unfortunately, I'm not allowed to provide the model. I did confirm that the model both compiles and simulates. Here's a copy of the report that gets generated from HDL Workflow Advisor:
Failed Unrecognized fixed-point encoding.
Error using hdlcoder.pirctx/invokeBackEnd
Unrecognized fixed-point encoding.
Error in slhdlcoder.HDLCoder/makehdl
Error in downstream.DownstreamIntegrationDriver/runGenerateRTLCodeAndTestbench
Error in runGenerateRTLCodeAndTestbench
Error in Simulink.ModelAdvisor/executeCheckCallbackFct
Error in Simulink.ModelAdvisor/run
Error in Simulink.ModelAdvisor/runCheck
Error in ModelAdvisor.Node/runTaskAdvisor
Failed Generated HDL code.

请先登录,再进行评论。


Kiran Kintali
Kiran Kintali 2020-7-1
can you reach out to support@mathworks.com to help debug this error further?
thanks

类别

Help CenterFile Exchange 中查找有关 Code Generation 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by