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

2 次查看(过去 30 天)
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?

回答(1 个)

Tianqi Liu
Tianqi Liu 2022-10-14
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

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by