HDL Coder gives Error Message: Evaluation of elaborate function on class hdldefault​s.Trigonom​etricFunct​ion failed

1 visualización (últimos 30 días)
While trying to create VHDL-Code from a Simulink Model, I get the following error when I start the HDL-Coder:
Error: Evaluation of elaborate function on class hdldefaults.TrigonometricFunction failed with the error message: MATLAB:unassignedOutputs: Output argument "hNewC" (and maybe others) not assigned during call to "hdldefaults.TrigonometricFunction/elaborate".
I am trying to create a sine and a cosine signal with 11 iterations of CORDIC from signals of type sfix65. The output type it projects is sfix65_En63. The compability Checker gives out no error and no warnings. What can be done to avoid this error?
  1 comentario
Tim McBrayer
Tim McBrayer el 9 de Dic. de 2016
What version of MATLAB are you using? I cannot reproduce this in either R2015a or R2016a. Are you using Altera MegaFunctions, by any chance?

Iniciar sesión para comentar.

Respuestas (1)

Kiran Kintali
Kiran Kintali el 2 de Mayo de 2021
This issue is not reproducible. Attached model uses sin cordic with 11iterations on sfix65 input type.
>> makehdl(gcb)
### Generating HDL for 'test_sincordic_vec/Subsystem'.
### Using the config set for model test_sincordic_vec for HDL code generation parameters.
### Running HDL checks on the model 'test_sincordic_vec'.
### Begin compilation of the model 'test_sincordic_vec'...
### Applying HDL optimizations on the model 'test_sincordic_vec'...
### The code generation and optimization options you have chosen have introduced additional pipeline delays.
### The delay balancing feature has automatically inserted matching delays for compensation.
### The DUT requires an initial pipeline setup latency. Each output port experiences these additional delays.
### Output port 1: 12 cycles.
### Begin model generation.
### Model generation complete.
### Begin VHDL Code Generation for 'test_sincordic_vec'.
### Working on test_sincordic_vec/Subsystem/Sin as hdlsrc\test_sincordic_vec\Sin.vhd.
### Working on test_sincordic_vec/Subsystem as hdlsrc\test_sincordic_vec\Subsystem.vhd.
### Code Generation for 'test_sincordic_vec' completed.
### Creating HDL Code Generation Check Report Subsystem_report.html
### HDL check for 'test_sincordic_vec' complete with 0 errors, 0 warnings, and 1 messages.
### HDL code generation complete.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by