how to convert mfile to vhdl code with out similink model

 채택된 답변

Tim McBrayer
Tim McBrayer 2013년 12월 16일

2 개 추천

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.

댓글 수: 2

thank you very much sir for your immediate response.. my problem in hdl code generation is that while we are running Recursive Least Square (RLS) demo noise cancellation. we could not able to generate HDL (Tools->HDL Coder-> Generate HDL). We are getting errors summary --> ERROS FROM HDLSHARED:HDLSHARED:SIMULINKFRONTEND:REPORT ISSUES:FRONTENDERROS and 1.rls1/RLS FILTER/Frame-Based RLS Filter/Update/Stabilize /in Matrices are not supported in this release. 2.rls1/RLS FILTER/Frame-Based RLS Filter/Update/Stabilize /sum2 3.rls1/RLS FILTER/Frame-Based RLS Filter/Update/Stabilize /conj1 ... We couldn`t able to figure out the problem. Kindly please suggest us to rectify our errors. Thank you in advance.
The relevant part of the error message is:
rls1/RLS FILTER/Frame-Based RLS Filter/Update/Stabilize /in:
Matrices are not supported in this release.
The named signal is a matrix; it has some dimensions MxN. HDL Coder does not support matrices in general, although that is being improved. You will need to convert the data type to either N Mx1, or M 1xN, vectors.

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

megha billure
megha billure 2016년 3월 11일

0 개 추천

i have matlab 2013a. To learn HDL coder, i tried same example given here i.e 'mlhdlc_sfir.m'. but i am getting error in conversion of floating point to fixed point. can you please help me with, the where problem may be. i am getting error while build like Error in Float2FixedConverter>buildDesign at 1699
Error in Float2FixedManager>buildFloatingPointCode at 102 is there installation problem or what..?

댓글 수: 1

I wonder if you need a C compiler installed in 13a to build mex files. can you try "mex -setup"? Thanks.

댓글을 달려면 로그인하십시오.

Sara Chillali
Sara Chillali 2020년 5월 20일

0 개 추천

matrices are not supported in this release hdl generete code problemme??

카테고리

도움말 센터 및 File Exchange에서 Code Generation에 대해 자세히 알아보기

제품

태그

질문:

2013년 12월 16일

댓글:

2020년 5월 20일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by