필터 지우기
필터 지우기

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});

답변 (1개)

Dave Gutierrez
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.

카테고리

Help CenterFile 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!

Translated by