I want to run Vhdl Library on matlab
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello there,
Hello,
I'm converting Matlab file(.m) to HDL code. The fixed-point file is working 100% , but I got the following errors when I tried to convert it to VHDL code. I found that I have to use the VHDL math library to get those errors fixed.
Can you please help me to run the VHDL code at Matlab
_ _ *.m file orders _ _ *
Y= Sin(x);
Y= Cos (x);
Power(a,b);
round (a,b);
Y=abs(x);
_ VHDL errors _ *
file_fixpt:1163 Error 'pow' : Call to 'pow' is not supported for HDL code generation.
file_fixpt:1523 Error 'round' : Call to 'round' is not supported for HDL code generation.
file_fixpt:1669 Error 'cos' : Call to 'cos' is not supported for HDL code generation.
file_fixpt:1669 Error 'sin' : Call to 'sin' is not supported for HDL code generation.
file_fixpt:1201 Error 'abs' : Call to 'abs' is not supported for HDL code generation.
댓글 수: 0
채택된 답변
Tim McBrayer
2015년 4월 15일
The short answer is that the function calls you list are not supported by HDL Coder, just like the message you received says. The list of supported functions are available in the documentation at:
You can build a custom lookup table to implement any function, given the appropriate input range and desired output granularity. See the documentation on lookup table replacement.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 HDL Coder에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!