Calling/Conversion of image processing in M-file to Simulink
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (1)
Anson
am 13 Okt. 2011
0 Stimmen
1 Kommentar
Kaustubha Govind
am 14 Okt. 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?
Kategorien
Mehr zu HDL Code Generation and Deployment finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!