User guide
17-32
Using the PLI
You specify this file with the -use_vpiobj compile-time option. For
example:
vcs any.c any.v -use_vpiobj vpi_user.c +cli+3 +vpi
PLI Table File for VPI Routines
The PLI table file for VPI routines works the same way, and with the
same syntax as a PLI table file for user-defined system tasks that
execute C functions, which call PLI ACC routines. The following is an
example of such a PLI table file:
$set_mipd_delays call=PLIbook_SetMipd_calltf
check=PLIbook_SetMipd_compiletf
acc=mip,mp,gate,tchk,rw:test+
Note that this entry includes acc= even though the C functions in the
PLI specification call VPI routines instead of ACC routines. The
syntax has not changed; you use the same syntax for enabling ACC
and VPI routines.
This PLI table file is for a example file named set_mipd_delays_vpi.c
that is available with The Verilog PLI Handbook by Stuart Sutherland,
Kluwer Academic Publishers, Boston, Dordrect, and London.
Integrating a VPI Application With VCS
If you create one or more shared libraries for a VPI application, the
application should not contain the array named
vlog_startup_routines.