HDL Coder gives Error Message: Evaluation of elaborate function on class hdldefaults.TrigonometricFunction failed
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Tim McBrayer
le 9 Déc 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?
Réponses (1)
Kiran Kintali
le 2 Mai 2021
This issue is not reproducible. Attached model uses sin cordic with 11iterations on sfix65 input type.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/604635/image.jpeg)
>> 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.
0 commentaires
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!