Evaluation of elaborate function error in HDL coder

조회 수: 7 (최근 30일)
paul b
paul b 2019년 8월 16일
답변: Kiran Kintali 2020년 5월 10일
I get the following error when trying to generate HDL from a simulink model with HDL Coder:
Error: Evaluation of elaborate function on class hdldefaults.NonRestoreDivide failed with the error message: MATLAB:UndefinedFunction: Undefined function 'Signed' for input arguments of type 'hdlcoder.tp_single'.
The model runs fine in simulink. I cannot find anything helpful about any terms in this message and no link is given to any specific point in the model. I first got the error when I added a number of single precision floating point multilpy and divide blocks into the design. I reworked it to use all multiplies and a single reciprocal block but still get the same problem. I am using prelease matlab 2019b. What is the root of the problem and is there some way to track it down to a specific point in the design?
  댓글 수: 1
paul b
paul b 2019년 8월 20일
All the product blocks used the Shift-Add architecture. Switching back to Linear eliminates the error. Still not clear what exactly is happening.

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

답변 (2개)

Nishant Gupta
Nishant Gupta 2020년 5월 10일
  댓글 수: 1
Kiran Kintali
Kiran Kintali 2020년 5월 10일
This seems like a general guidance and unrelated to the internal HDLCoder error. Please see my answer to the question.

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


Kiran Kintali
Kiran Kintali 2020년 5월 10일
This is an unexpected error from HDLCoder. Will it be possible to share the model? We can evaluate and provide the workaround.

카테고리

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