MATLAB Answers

Hello. I'm traying to generate un HDL code from matlab user-definded function algorithm and got an error about function specialisation that I didn't understand.

조회 수: 5(최근 30일)
Bouchra BENDAHANE
Bouchra BENDAHANE 2021년 9월 2일
댓글: Bouchra BENDAHANE 2021년 9월 8일
this is the error msg that I got :
The function 'AppDec_Fun2' contains persistent variables 'dataAppFun2' and has specialization 'AppDec_Fun2_s1' associated with it. Function specializations containing persistent variables are not supported for fixed-point conversion. Consider rewriting your algorithm such that it does not use persistent variables within functions that require specialization.
  댓글 수: 3
Walter Roberson
Walter Roberson 2021년 9월 3일
Memory Store perhaps ?
Or you could probably avoid the problem by coding the function in fixed-point yourself, so that it did not need to be specialized to convert from double to fixed point.

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

답변(1개)

Kiran Kintali
Kiran Kintali 2021년 9월 7일
Can you share a sample design.m, testbench.m and project file used for fixed point conversion?
Thanks
  댓글 수: 3
Bouchra BENDAHANE
Bouchra BENDAHANE 2021년 9월 8일
The function 'AppDec_Fun2'is not my principale function from wich I'm generating HDL code. I gave its matlab code in previous comments.

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

Community Treasure Hunt

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

Start Hunting!

Translated by