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

Answers (1)

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

7 Comments

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{:})
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.
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?
Hello There, I have the same problem as Alex explained it . did you solve this problem ?
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?
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
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.

Sign in to comment.

Products

Asked:

on 28 Dec 2014

Commented:

on 29 Aug 2017

Community Treasure Hunt

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

Start Hunting!