User guide
17-31
Using the PLI
Also the cbValueChange callback is not supported for the
following objects:
- A memory or a memory word (index or element)
- VarArray or VarSelect
Support for the vpi_register_systf Routine
VCS supports the vpi_register_systf VPI access routine. To use it you
need to make an entry in the vpi_user.c file. You can copy this file
from $VCS_HOME/etc/vpi. The following is an example:
In this example:
• The routine named register_me is externally declared.
• It is also included in the array named vlog_startup_routines.
• The last entry in the array is zero.
cbRelease cbAssign cbDeassign
/*======================================================
Copyright (c) 2003 Synopsys Inc
======================================================*/
/* Fill your start up routines in this array, Last entry
should be
zero, use -use_vpiobj to pick up this file */
extern void register_me();
void (*vlog_startup_routines[])() = {
register_me,
0 /* Last Entry */
};
entry here