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.

采纳的回答

Tim McBrayer
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 个)

类别

Help CenterFile Exchange 中查找有关 HDL Coder 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by