I want to run Vhdl Library on matlab
2 ビュー (過去 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!