HDL Code Generation "unhandled type"

I am trying to work through some of the tutorials on HDL Coder. However, I get the following error when trying to generate the code for the Symmetric FIR Filter
unhandled type
Use help codegen for more information on using this command.
Error in Manager>wfa_generateCode at 535
What exactly is the error here and how do I fix it?
I am running MATLAB R2014b on Ubuntu 14.04.
Thanks In Advance
Alex

답변 (1개)

Kiran Kintali
Kiran Kintali 2014년 12월 29일

0 개 추천

you might have tried to generate code from the whole model. can you try this?
makehdl('sfir_fixed/symmetric_fir')

댓글 수: 7

Alex Biddulph
Alex Biddulph 2014년 12월 29일
편집: Alex Biddulph 2014년 12월 29일
I have been following the instructions listed in the link I specified.
Here is the result of running that comand
>> makehdl('sfir_fixed/symmetric_fir')
Error using getmodelnodename (line 40)
Could not find subsystem 'sfir_fixed/symmetric_fir' in the model 'simulink'
Error in hdlcoderargs>isvalidstartnodename (line 117)
Error in hdlcoderargs (line 55)
Error in privmakehdl (line 10)
Error in makehdl (line 75)
privmakehdl(varargin{:})
Tim McBrayer
Tim McBrayer 2015년 1월 5일
This is the error message you get when you haven't opened the model sfir_fixed. HDL Coder needs the model open and in memory before it can generate HDL code.
Alex Biddulph
Alex Biddulph 2015년 1월 6일
Here is a screenshot of my MATLAB window. You can see the project is open in the HDL Code Generation tab on the right-hand side.
Is 'sfir_fixed/symmetric_fir' the right system/sub-system for my setup?
Tamer
Tamer 2015년 3월 31일
Hello There, I have the same problem as Alex explained it . did you solve this problem ?
Ganesh Gaonkar
Ganesh Gaonkar 2015년 3월 31일
Hi Tamer, Are you trying to generate HDL code for 'sfir_fixed' Simulink model or trying MATLAB to HDL convertion workflow mentioned here ? Which error among the 2 above mentioned errors you are receiving at your end?
Shrivathsav Seshan
Shrivathsav Seshan 2017년 8월 28일
Ganesh, I am receiving the error that Alex received in his original post. I am trying the example workflow for MATLAB code to HDL from the link you posted. What is your advice
Kiran Kintali
Kiran Kintali 2017년 8월 29일
the demo should work out of the box unless there are some install issues.
this is not an expected error. please contact technical support with reproduction steps.

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

제품

질문:

2014년 12월 28일

댓글:

2017년 8월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by