MATLAB: How to convert mfile to vhdl code with out similink model

HDL Coderwavread

is mcode block useful to convert of mfile, is the mcode block support the wavread command

Best Answer

HDL Coder has supported HDL code generation from MATLAB code since R2012a. However, it does not and will never support the wavread function. The reading of any external file needs to be done by your testbench code. Supporting a complex command like wavread implies a filesystem on external storage, and high-level synthesis to perform external file IO in hardware.
HDL Coder has many image processing demos where the testbench reads an image and passes it into the hardware design. Audio processing is very simpler with this technique. I suggest you study the demos to understand this approach.