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

1 visualizzazione (ultimi 30 giorni)
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.

Risposte (2)

Kiran Kintali
Kiran Kintali il 26 Giu 2020
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 Commento
Tim Nash
Tim Nash il 30 Giu 2020
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.

Accedi per commentare.


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

Categorie

Scopri di più su Code Generation in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by