User guide

E-52
PLI Access Routines
acc_lsi_dumpports_setformat
Syntax
int acc_lsi_dumpports_setformat(lsi_dumpports_format_type
format)
Where the valid lsi_dumports_format_types are as follows:
USE_DUMPPORTS_FORMAT_IEEE
USE_DUMPPORTS_FORMAT_LSI
Synopsis
Specifies the format of the VCDE file.
Use this routine to specify which output format (IEEE or the original
LSI) should be used. This routine must be called before
acc_lsi_dumpports_call().
Returns
Zero if success, non-zero if error. Errors are reported through
tf_error().
Example D-19 Example of acc_lsi_dumpports_setformat
#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";
/* use IEEE format for this file */
acc_lsi_dumpports_setformat(USE_DUMPPORTS_FORMAT_IEEE);
if (acc_lsi_dumpports_call(instance, outfile1)) {
/* error */
}
/* use LSI format for this file */