User guide
E-46
PLI Access Routines
Caution
A call to this function can also close files opened by the
$lsi_dumpports or $dumpports system tasks.
acc_lsi_dumpports_flush
Syntax
int acc_lsi_dumpports_flush(char *filename)
Synopsis
Flushes cached data to the VCDE file on disk.
This is a PLI interface to the $dumpportsflush system task. If the
filename is NULL all open files are flushed.
Returns
The number of files matched.
Example D-14 Example of acc_lsi_dumpports_flush
#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 */
}
acc_lsi_dumpports_limit(100000, outfile);
...
if (time == yada_yada)
acc_lsi_dumpports_off(outfile);
...
if (time == yada_yada_yada) {