User guide
E-42
PLI Access Routines
acc_lsi_dumpports_all
Syntax
int acc_lsi_dumpports_all(char *filename)
Synopsis
Adds a checkpoint to the file.
This is a PLI interface to the $dumpportsall system task. If the
filename argument is NULL, this routine adds a checkpoint to all
open VCDE files.
Returns
The number of VCDE files that matched.
Example D-11 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";
/* use IEEE format for this file */
acc_lsi_dumpports_setformat(USE_DUMPPORTS_FORMAT_IEEE);
if (acc_lsi_dumpports_call(instance, outfile)) {
/* rut-roh, error ... */
}
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) */