Converting (.m) code to HDL Code - Matlab error for Sine, Cosinse function

2 次查看(过去 30 天)
Hello,
I'm converting Matlab file(.m) to fixed-point and then to HDL code. the fixed-point file is working 100% , but I got the following errors when I tried to convert the fixed-point to VHDL code because I wrote the following commands at my .m file, Can you please help me to find the replacement of these orders
* _ .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 个)

类别

Help CenterFile Exchange 中查找有关 Code Generation 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by