problems with HDL coder
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I try to convert a matlab program to HDL with HDL coder. I created two files, one with the main function (lorenzRK4) and another(the test bench, TBlorenzRK4) where there is just the name of the function.
But when I am at the the step "Define Input Types" I click on Run and I have several errors which all are "Undifined function or variable "X". The first assignement to a local variable determines its claas."
I know that my variables are not define but I don't know how to do this, I thought in Matlab we don't have to do this.
0 comentarios
Respuestas (1)
Tim McBrayer
el 25 de Ag. de 2014
You need to write each variable before reading it. Is this occurring? HDL Coder requires some sort of typing information in order to determine what HDL to generate. The HDL Coder flow handles defining the data types of the inputs to your design. All other types must either be defined internally, or be determinable via MATLAB's type propagation rules.
0 comentarios
Ver también
Categorías
Más información sobre HDL Coder en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!