User guide
E-44
PLI Access Routines
Example D-12 Example of acc_lsi_dumpports_all
#include "acc_user.h"
#include "vcs_acc_user.h"
handle instance = acc_handle_by_name("test_bench.device", 0);
char *outfile = "device.evcd";
acc_lsi_dumpports_setformat(USE_DUMPPORTS_FORMAT_IEEE);
if (acc_lsi_dumpports_call(instance, outfile)) {
/* error */
}
Caution
Multiple calls to this routine are allowed, but the output file name must
be unique for each call.
For proper dumpports operation, your task’s miscellaneous function
must call acc_lsi_dumpports_misc() with every call it gets. This
ensures that the dumpports routines sees all of the simulation events
needed for proper update and closure of the dumpports (extended
VCD) files. For example, your miscellaneous routine would do the
following:
my_task_misc(int data, int reason)
{
acc_lsi_dumpports_misc(data, reason);
...
}