필터 지우기
필터 지우기

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

조회 수: 4 (최근 30일)
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
Tim McBrayer
Tim McBrayer 2016년 12월 9일
What version of MATLAB are you using? I cannot reproduce this in either R2015a or R2016a. Are you using Altera MegaFunctions, by any chance?

댓글을 달려면 로그인하십시오.

답변 (1개)

Kiran Kintali
Kiran Kintali 2021년 5월 2일
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.

Community Treasure Hunt

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

Start Hunting!

Translated by