How can I add a finish signal for HDL generation?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
King
el 16 de Abr. de 2015
Comentada: Bharath Venkataraman
el 11 de Jun. de 2015
I created a algrithm using simulink and used HDL Coder to have my VHDL code generated. But I found that there's no flag indicate that the ouput result is already at the output port, I wonder if there's any way to solve this question? Any help would be appreciated. Thanks.
0 comentarios
Respuesta aceptada
Bharath Venkataraman
el 16 de Abr. de 2015
If you are referring to the latency of the system due to registers in the path between input and output, a valid flag is typically modeled as an output of the design to indicate that data is ready.
This valid flag in the Simulink simulation should go high when the data is ready on the output. Once you verify this working in your Simulink design, you can generate HDL code for it and you will find the same valid output available in HDL as well.
2 comentarios
Bharath Venkataraman
el 11 de Jun. de 2015
That will depend on your design. You can use counters, delays, logical comparison operators to figure out when the valid flag output should go high.
Más respuestas (0)
Ver también
Categorías
Más información sobre HDL Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!