HDL multi rate simulation

19 visualizaciones (últimos 30 días)
John
John el 20 de En. de 2026 a las 14:40
Editada: Kiran Kintali el 20 de En. de 2026 a las 20:26
I'm having trouble understanding how to speed up the simulation when everything is running at the hardware rate. I have a clock interface that is running at 50 MHz and I have simulink sampling rates set to 20e-9 s and then I have enabled the setting "Treat Simulink rates as actual hardware rates" in order to model to communication interface such as the AXI4 master correctly. However, the simulation comes to crawl even though controller and plant can be run at a slower rate. Is there a way I can speed up the simulation while maintaining cycle accurate fidelity?

Respuestas (1)

Kiran Kintali
Kiran Kintali el 20 de En. de 2026 a las 20:23
Editada: Kiran Kintali el 20 de En. de 2026 a las 20:26
Can you share a sample model?
It sounds like you have parts of the design that do not need to be updated at 20e-9s, if that is the case, variable step discrete solver should help with the simulation time if you are trying to speeding up the Simulink simulation of the model intended for HDL code generation.
However, there are some aspects of HDL test bench generation that would not work with this. Please reach out to tech support for additional help.

Categorías

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

Etiquetas

Productos


Versión

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by