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

Antworten (1)

Kiran Kintali
Kiran Kintali am 29 Dez. 2014

0 Stimmen

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

7 Kommentare

Alex Biddulph
Alex Biddulph am 29 Dez. 2014
Bearbeitet: Alex Biddulph am 29 Dez. 2014
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 am 5 Jan. 2015
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 am 6 Jan. 2015
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 am 31 Mär. 2015
Hello There, I have the same problem as Alex explained it . did you solve this problem ?
Ganesh Gaonkar
Ganesh Gaonkar am 31 Mär. 2015
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 am 28 Aug. 2017
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 am 29 Aug. 2017
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.

Melden Sie sich an, um zu kommentieren.

Produkte

Gefragt:

am 28 Dez. 2014

Kommentiert:

am 29 Aug. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by