User guide

E-45
PLI Access Routines
acc_lsi_dumpports_close
Syntax
int acc_lsi_dumpports_call(handle instance, char *filename)
Synopsis
Closes specified VCDE files.
This routine reads the list of files opened by a call to the system tasks
$dumpports and $lsi_dumpports or the routine
acc_lsi_dumpports_call() and closes all that match either the
specified instance handle or the filename argument.
One or both arguments can be used. If the instance handle is non-null,
this routine closes all files opened for that instance.
Returns
The number of files closed.
Example D-13 Example of acc_lsi_dumpports_close
#include "acc_user.h"
#include "vcs_acc_user.h"
handle instance = acc_handle_by_name("test_bench.device", 0);
char *outfile1 = "device.evcd1";
char *outfile2 = "device.evcd2";
acc_lsi_dumpports_setformat(USE_DUMPPORTS_FORMAT_LSI);
acc_lsi_dumpports_call(instance, outfile1);
acc_lsi_dumpports_call(instance, outfile2);
...
acc_lsi_dumpports_close(NULL, outfile1);
...
acc_lsi_dumpports_close(NULL, outfile2);