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