Calling/Conversion of image processing in M-file to Simulink
Show older comments
Dear all expert,
For information, I purchased a Spartan6 LX9 FPGA Microboard and I found out that the 'system generator' software that come along with my product allow me to program the microboard with Simulink.
However, i can't convert or call the M-file that i wrote, into the simulink. So, i wish to ask how to convert the M-file to Simulink? Or, any other method to program my microboard with the existing M-file coding? Attachment of the tutorials with steps will be kindly appreciated. Thanks
Accepted Answer
More Answers (1)
Anson
on 13 Oct 2011
0 votes
1 Comment
Kaustubha Govind
on 14 Oct 2011
Anson: Unfortunately, there is no way to generate HDL code for unsupported functions (like graythresh or bwtraceboundary), unless you can find corresponding Simulink blocks supported by Simulink HDL Coder - you can run "hdllib" at the MATLAB prompt if you have Simulink HDL Coder to see all the blocks supported for HDL code generation.
Note that you can call _any_ MATLAB function from the Embedded MATLAB Function block as long as you declare them using eml.extrinsic (now coder.extrinsic - http://www.mathworks.com/help/toolbox/eml/ug/bq1h2z9-38.html#bq1h2z9-40). However, you _cannot_ generate HDL code from them.
Regarding System Generator - sorry, but I don't know much about this software. The best you could probably do is try writing to Xilinx support?
Categories
Find more on Xilinx Zynq Platform in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!