Managing simulink block hierarchy for HDL coder project
Mostrar comentarios más antiguos
I am working on a Simulink project which will be ported to VHDL using HDL coder. For the most part, I am using blocks from Mathworks libraries, but I am also using hierarchy and a few custom function blocks that I have written. I am curious what is the preferred way to manage multiple instances of the same block? Specifically, I wrote a saturating timer function, because the HDL Coder timer did not have quite the behavior I am looking for. This timer shows up multiple times in my Simulink system, but not in a manner where a For Each Subsytem is the right way to capture it.
How should I define custom function blocks and subsytem blocks so that they are only defined once, but instantiated multiple times? My goal is to improve readability of the VHDL output AND to avoid debugging to blocks which are supposed to be identical, but may not be.
Thanks,
Paul
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre HDL Coder en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!