How can I get correct simulation result from generated SystemVerilog model in which DPI-C setparam function has vector parameter
1 回表示 (過去 30 日間)
古いコメントを表示
I made SystemVerilog module with DPI-C interface and C source files from simulink subsystem. The subsystem has 1x4 vector parameters which specify nominator and denominator coefficients. SystemVerilog with C object,compiled to .so lib, runs on Cadence INSICIVE platform. But the simulation result is not correct. When I set the coefficients to secondary delay-system, the output response of step input is nothing,still low. Setparam call description is below. DPI_XX_setparam_den(obj,'{den3,den2,den1,den0});
0 件のコメント
回答 (1 件)
Dave Gutierrez
2017 年 6 月 15 日
編集済み: Dave Gutierrez
2017 年 6 月 15 日
1. The DPI-C component uses unpacked arrays so I will try removing the " ' " infront of " '{den3,den2,den1,den0} ".
2.Where are you calling the set param function?, in the initial block? or reset?. Make sure you are not inadvertently triggering the DPI_*_initialize routine and wiping out your new parameter values.
If this still does not work feel free to attach a model, and I ll take a closer look.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!