User guide
E-47
PLI Access Routines
/* 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);
...
acc_lsi_dumpports_limit
Syntax
int acc_lsi_dumpports_limit(unsigned long filesize, char
*filename)
Synopsis
Sets the maximum VCDE file size.
This is a PLI interface to the $dumpportslimit task. If the
filename is NULL the file size is applied to all files.
Returns
The number of files matched.
Example D-15 Example of acc_lsi_dumpports_limit
#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);
...