Generate model from existing vhdl entity

2 visualizaciones (últimos 30 días)
P. Fetzer
P. Fetzer el 20 de Dic. de 2011
I have a question regarding HDL Coder which we are evaluating right now. How can I set up an model from an existing VHDL entity. The interface should be created automatically from the architecture. Tried to find that in the docs, but could not find a solution to that.

Respuestas (2)

Tim McBrayer
Tim McBrayer el 20 de Dic. de 2011
The ability to do this automatically is not currently part of Simulink HDL Coder. It can be done manually, though, by building a subsystem with the desired IO interface as part of your larger HDL model. You should choose "BlackBox" for the HDL Block Architecture property. Simulink HDL Coder will generate a component instantiation using the names, ports, data widths, and so forth, from the BlackBox subsystem, integrated into your larger code generation model. It will not generate any code for the contents of that subsystem.

P. Fetzer
P. Fetzer el 20 de Dic. de 2011
But what if my workflow includes Simulation with external tools like ModelSim. Does that mean I cannot simulate my model directly because I have an black box that is not connected to my entity in any way?

Categorías

Más información sobre HDL Coder en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by