I tryed to write an Matlab function and convert it into verilog. I get the following error just like the image below. The error appear wherever their are variables, I don't know way! Please how to overcome this error ?? I appreciate your advice !
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163814/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/163815/image.png)
0 comentarios
Respuestas (2)
Tim McBrayer
el 9 de Mayo de 2016
HDL Coder requires every variable to be unambiguously typed. Your issues all can be traced back to the function fcm being unsupported and/or undefined. This leaves center and member untyped. The rest just cascade from there.
You should also take a look at the Supported Function list for HDL Coder. You are using multiple functions that aren't supported for HDL code generation, such as greythresh and im2bw. See this MATLAB Answer for more information.
0 comentarios
sawan singh
el 23 de Mayo de 2016
use coder.extrinsic('rgb2gray','imshow','figure','filter2') where rgb2gray, imshow,figure, filter2 are matlab function used in your m file.
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!