I want to run Vhdl Library on matlab

4 views (last 30 days)
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.

Accepted Answer

Tim McBrayer
Tim McBrayer on 15 Apr 2015
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.

More Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!