User guide
E-61
PLI Access Routines
The tag field is a unique identifier used to distinguish ‘include files.
For example, in the following Verilog module, the breakable lines in
the first ‘include of the file sequential.code have a different
tag than the breakable lines in the second ‘include. (The tag
numbers will match the vcs_srcfile_info_t->SourceFileTag
field. See the acc_mod_sfi_fetch() routine for details.)
module x;
initial begin
‘include sequential.code
‘include sequential.code
end
endmodule
Returns
The return value is an array of location structures. Termination of the
array is indicated by a NULL filename field. The calling routine is
responsible for freeing the returned array.
typedef struct t_location2 {
int line_no;
char *filename;
int tag;
} s_location2, *p_location2;
Returns NULL if the module has no breakable lines or is source
protected.
Example D-25 Example of acc_mod_lcb_fetch2
#include <stdio.h>
#include "acc_user.h"
#include "vcs_acc_user.h"
void ShowLines2(handleModule)
handle handleModule;
{
p_location2 plocation;