User guide

21-102
OpenVera Native Testbench
void DPI_call(int a, int b)
{
int i;
for( i = 0; i < 1000; i++ )
{
i +=b;
i *=a;
do_activity( i );
}
}
Compile:
% vcs -R -ntb +prof dpi.vr dpi.c
Run:
% ./simv
Example 21-12 Log File (vcs.prof)
// Synopsys VCS X-2005.09-A[D] (ENG)
// Simulation profile: vcs.prof
// Simulation Time: 8.360 seconds
========================================================================
TOP LEVEL VIEW
======================================================================
TYPE %Totaltime
---------------------------------------------------------------------
DPI 98.60
PLI 0.00
VCD 0.00
KERNEL 0.00
MODULES 0.00
PROGRAMS 1.40
======================================================================
PROGRAM VIEW
======================================================================
Program(index) %Totaltime No of Instances Definition
---------------------------------------------------------------------