/usr/include/cver/cv_vpi_user.h is in gplcver 2.12a-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | /******************************************************************************
* cv_vpi_user.h
*
* Simulator specific vpi_user (vpi_ routine) include file
*
* This file contains the constant definitions, structure definitions
* used by the Cver simulator specific vpi mechanism that follows
* the IEEE P1364 standard
*
* It must be included after vpi_user.h
*
* This file also contains the vpi_ routines that are enhancements not in
* the IEEE standard
*
* Copyright 1995-2003. Pragmatic C Software. All rights reserved.
******************************************************************************/
#ifndef CV_VPI_USER_H
#define CV_VPI_USER_H
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
/*********** OBJECT TYPES **********/
/* numbers not yet assigned - using 500s (unassigned) until P1364 assigns */
#define vpiNetDriver 500 /* vpi_ added net driver */
#define vpiNetBitDriver 501 /* vpi_ added net bit driver */
#define vpiSchedBitEvent 502 /* vpi_ added wire driver per bit event */
#define vpiParamArray 503 /* new parameter array object */
#define vpiParamArrayWord 504 /* word of param array (same as memory) */
/*********** METHODS **********/
/*********** methods used to traverse 1 to 1 relationships **********/
/* currently no access to pound parameter expressions - will move */
#define vpiPoundParam 505
/* iterator to get one instance (vpiModule object) of each type */
/* 2nd argument to vpi_iterate must be NULL */
#define vpiOneOfEachMod 506 /* one instance of each type (Cver ext.) */
/* Cver start range (to not conflict with standard or other simulators */
#define CV_START_ONUMS 500
/*********** PROPERTIES ***********/
/*********** Cver added properties types ***********/
/*---------------------------------------------------------------------------*/
/*------------------------------- definitions -------------------------------*/
/*---------------------------------------------------------------------------*/
/* extra vpi_put_value 4th argument flag value to add driver terminal */
#define vpiAddDriver 16
/*********************** STRUCTURE DEFINITIONS ****************************/
/* cbLanguageLine call back per line record */
typedef struct t_vpi_languageline
{
char *linep;
char *file;
int lineno;
} s_vpi_languageline, *p_vpi_languageline;
/* Cver specific call back record - starting at 500 to avoid conflicts */
#define cbLanguageLine 500
/* customer specific simulation control operations */
#define cbCustomer1 501
/* Cver extended vpi_control operations */
#define vpiInsertSource 500
#define vpiCustomer1 501
#define vpiFlushLog 502
#define vpiDumpVars 503
#define vpiEnableCb 504
#define vpiDisableCb 505
/*---------------------------------------------------------------------------*/
/*--------------- Cver non standard routine definitions ---------------------*/
/*---------------------------------------------------------------------------*/
#if defined(__STDC__) || defined(__cplusplus)
#ifndef PROTO_PARAMS
#define PROTO_PARAMS(params) params
#define DEFINED_PROTO_PARAMS
#endif
#ifndef EXTERN
#define EXTERN
#define DEFINED_EXTERN
#endif
#else
#ifndef PROTO_PARAMS
#define PROTO_PARAMS(params) (/* nothing */)
#define DEFINED_PROTO_PARAMS
#endif
#ifndef EXTERN
#define EXTERN extern
#define DEFINED_EXTERN
#endif
#endif /* __STDC__ */
/* SJM 11/13/03 - for backward compatibility - old name of vpi control */
#define vpi_sim_control vpi_control
/* added routine for copying - submitted to committee for inclusion */
EXTERN vpiHandle vpi_copy_object PROTO_PARAMS((vpiHandle obj));
/* added routine for dumping internal vpi handle contents */
EXTERN PLI_INT32 __vpi_show_object PROTO_PARAMS((vpiHandle obj));
#ifdef DEFINED_PROTO_PARAMS
#undef DEFINED_PROTO_PARAMS
#undef PROTO_PARAMS
#endif
#ifdef DEFINED_EXTERN
#undef DEFINED_EXTERN
#undef EXTERN
#endif
#ifdef __cplusplus
}
#endif
#endif /* CV_VPI_USER_H */
|