User guide

E-85
PLI Access Routines
VCS API Routines
Typically VCS controls the PLI application. If you write your
application so that it controls VCS you need these API routines.
Vcsinit()
When VCS is run in slave mode, you can call this function to elaborate
the design and to initialize various data structures, scheduling
queues, etc. that VCS uses. After this routine executes, all the initial
time 0 events, such as the execution of initial blocks, are scheduled.
Call the vmc_main(int argc, char *argv) routine to pass
runtime flags to VCS before you call VcsInit().
VcsSimUntil()
This routine tells VCS to schedule a stop event at the specified
simulation time and execute all scheduled simulation events until it
executes the stop event. The syntax for this routine is as follows:
VcsSimUntil (unsigned int* t)
Argument t is for specifying the simulation time. It needs two words.
The first [0] is for simulation times from 0 to 2
32
-1, the second is for
simulation times that follow.
If any events are scheduled to occur after time t, their execution must
wait for another call to VcsSimUntil.