Effacer les filtres
Effacer les filtres

Export model to DPI and make a resistor value an argument to the model

2 vues (au cours des 30 derniers jours)
Terry Lalonde
Terry Lalonde le 30 Juin 2021
Commenté : Terry Lalonde le 19 Oct 2022
I am able to successfully export a simulink block and create a systemVerilog DPI-C model for Incisiv and run it. Now I would like to make, for example the value of a resistor in the model an argument to the model. How does one do that? Any simple examples?

Réponses (1)

Tianqi Liu
Tianqi Liu le 14 Oct 2022
Hi Terry,
You can use Simulink.Parameter with your Simulink subsystem. You can refer to this example. https://www.mathworks.com/help/hdlverifier/ug/tune-gain-parameter-during-simulation.html
Thanks,
Tianqi
  1 commentaire
Terry Lalonde
Terry Lalonde le 19 Oct 2022
Thanks for responding.
That looks very helpful. I'll investigate it more thorougly when I do my next model.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Simulink Coder dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by