User guide

E-51
PLI Access Routines
char *outfile = "device.evcd";
/* use IEEE format for this file */
acc_lsi_dumpports_setformat(USE_DUMPPORTS_FORMAT_IEEE);
if (acc_lsi_dumpports_call(instance, outfile)) {
/* rut-roh */
}
acc_lsi_dumpports_limit(100000, outfile);
...
if (time == yada_yada)
acc_lsi_dumpports_off(outfile);
...
if (time == yada_yada_yada) {
/* add checkpoint (no need to enable dumping) */
acc_lsi_dumpports_all(outfile);
acc_lsi_dumpports_flush(outfile);
}
...
if (resume_dumping_now)
acc_lsi_dumpports_on(outfile);
...
Caution
This routine may resume dumping on files opened by the
$dumpports and $lsi_dumpports system tasks.