Conversion of MATLAB (.m) coding into Verilog HDL

Illustration
hamid - 2023-04-11T12:51:10+00:00
Question: Conversion of MATLAB (.m) coding into Verilog HDL

Dear All   I am doing a project in which i have to convert image encryption MATLAB code into Verilog HDL language code and then implemented it on DE2 Board. I have already searcehd a lot of questions regarding this matter but every one said that you have to write MATLAB code either into Embedded MATLAB code or on Simulink. My question is that is this possible that i write a code in simple MATLAB coding means in .m extension (not on Simulink or in Embedded MATLAB code) and convert it into Verilog HDL Langugae. Because i have only .m extension MATLAB code to convert.   Looking forward for a positive response and thanking all in advance.    

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

You would probably have had to restrict the code to using the functions supported by Embedded MATLAB (even if not written with specific reference to Embedded MATLAB), and then you would probably have to run the code through MATLAB Coder (for Release R2011a or later). The result would be a C file, which you could then compile to HDL such as with one of these tools.
 
MATLAB Coder does not rely on any other toolboxes, but it seems likely to me that it is fairly expensive. I do not know, though, how the price would compare the alternatives.


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!