CIRCT 24.0.0git
Loading...
Searching...
No Matches
svdpi.h File Reference
#include <sys/types.h>
Include dependency graph for svdpi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TVpiVecval

Macros

#define DPI_DLLISPEC
#define DPI_DLLESPEC
#define DPI_EXTERN
#define DPI_PROTOTYPES
#define XXTERN   DPI_EXTERN DPI_DLLISPEC
#define EETERN   DPI_EXTERN DPI_DLLESPEC
#define sv_0   0
#define sv_1   1
#define sv_z   2
#define sv_x   3
#define VPI_VECVAL
#define SV_PACKED_DATA_NELEMS(WIDTH)
#define SV_MASK(N)
#define SV_GET_UNSIGNED_BITS(VALUE, N)
#define SV_GET_SIGNED_BITS(VALUE, N)

Typedefs

typedef uint8_t svScalar
typedef svScalar svBit
typedef svScalar svLogic
typedef struct TVpiVecval s_vpi_vecval
typedef struct TVpiVecval * p_vpi_vecval
typedef s_vpi_vecval svLogicVecVal
typedef uint32_t svBitVecVal

Functions

XXTERN const char * svDpiVersion (void)
XXTERN svBit svGetBitselBit (const svBitVecVal *s, int i)
XXTERN svLogic svGetBitselLogic (const svLogicVecVal *s, int i)
XXTERN void svPutBitselBit (svBitVecVal *d, int i, svBit s)
XXTERN void svPutBitselLogic (svLogicVecVal *d, int i, svLogic s)
XXTERN void svGetPartselBit (svBitVecVal *d, const svBitVecVal *s, int i, int w)
XXTERN void svGetPartselLogic (svLogicVecVal *d, const svLogicVecVal *s, int i, int w)
XXTERN void svPutPartselBit (svBitVecVal *d, const svBitVecVal s, int i, int w)
XXTERN void svPutPartselLogic (svLogicVecVal *d, const svLogicVecVal s, int i, int w)
XXTERN int svLeft (const svOpenArrayHandle h, int d)
XXTERN int svRight (const svOpenArrayHandle h, int d)
XXTERN int svLow (const svOpenArrayHandle h, int d)
XXTERN int svHigh (const svOpenArrayHandle h, int d)
XXTERN int svIncrement (const svOpenArrayHandle h, int d)
XXTERN int svSize (const svOpenArrayHandle h, int d)
XXTERN int svDimensions (const svOpenArrayHandle h)
XXTERN void * svGetArrayPtr (const svOpenArrayHandle)
XXTERN int svSizeOfArray (const svOpenArrayHandle)
XXTERN void * svGetArrElemPtr (const svOpenArrayHandle, int indx1,...)
XXTERN void * svGetArrElemPtr1 (const svOpenArrayHandle, int indx1)
XXTERN void * svGetArrElemPtr2 (const svOpenArrayHandle, int indx1, int indx2)
XXTERN void * svGetArrElemPtr3 (const svOpenArrayHandle, int indx1, int indx2, int indx3)
XXTERN void svPutBitArrElemVecVal (const svOpenArrayHandle d, const svBitVecVal *s, int indx1,...)
XXTERN void svPutBitArrElem1VecVal (const svOpenArrayHandle d, const svBitVecVal *s, int indx1)
XXTERN void svPutBitArrElem2VecVal (const svOpenArrayHandle d, const svBitVecVal *s, int indx1, int indx2)
XXTERN void svPutBitArrElem3VecVal (const svOpenArrayHandle d, const svBitVecVal *s, int indx1, int indx2, int indx3)
XXTERN void svPutLogicArrElemVecVal (const svOpenArrayHandle d, const svLogicVecVal *s, int indx1,...)
XXTERN void svPutLogicArrElem1VecVal (const svOpenArrayHandle d, const svLogicVecVal *s, int indx1)
XXTERN void svPutLogicArrElem2VecVal (const svOpenArrayHandle d, const svLogicVecVal *s, int indx1, int indx2)
XXTERN void svPutLogicArrElem3VecVal (const svOpenArrayHandle d, const svLogicVecVal *s, int indx1, int indx2, int indx3)
XXTERN void svGetBitArrElemVecVal (svBitVecVal *d, const svOpenArrayHandle s, int indx1,...)
XXTERN void svGetBitArrElem1VecVal (svBitVecVal *d, const svOpenArrayHandle s, int indx1)
XXTERN void svGetBitArrElem2VecVal (svBitVecVal *d, const svOpenArrayHandle s, int indx1, int indx2)
XXTERN void svGetBitArrElem3VecVal (svBitVecVal *d, const svOpenArrayHandle s, int indx1, int indx2, int indx3)
XXTERN void svGetLogicArrElemVecVal (svLogicVecVal *d, const svOpenArrayHandle s, int indx1,...)
XXTERN void svGetLogicArrElem1VecVal (svLogicVecVal *d, const svOpenArrayHandle s, int indx1)
XXTERN void svGetLogicArrElem2VecVal (svLogicVecVal *d, const svOpenArrayHandle s, int indx1, int indx2)
XXTERN void svGetLogicArrElem3VecVal (svLogicVecVal *d, const svOpenArrayHandle s, int indx1, int indx2, int indx3)
XXTERN svBit svGetBitArrElem (const svOpenArrayHandle s, int indx1,...)
XXTERN svBit svGetBitArrElem1 (const svOpenArrayHandle s, int indx1)
XXTERN svBit svGetBitArrElem2 (const svOpenArrayHandle s, int indx1, int indx2)
XXTERN svBit svGetBitArrElem3 (const svOpenArrayHandle s, int indx1, int indx2, int indx3)
XXTERN svLogic svGetLogicArrElem (const svOpenArrayHandle s, int indx1,...)
XXTERN svLogic svGetLogicArrElem1 (const svOpenArrayHandle s, int indx1)
XXTERN svLogic svGetLogicArrElem2 (const svOpenArrayHandle s, int indx1, int indx2)
XXTERN svLogic svGetLogicArrElem3 (const svOpenArrayHandle s, int indx1, int indx2, int indx3)
XXTERN void svPutLogicArrElem (const svOpenArrayHandle d, svLogic value, int indx1,...)
XXTERN void svPutLogicArrElem1 (const svOpenArrayHandle d, svLogic value, int indx1)
XXTERN void svPutLogicArrElem2 (const svOpenArrayHandle d, svLogic value, int indx1, int indx2)
XXTERN void svPutLogicArrElem3 (const svOpenArrayHandle d, svLogic value, int indx1, int indx2, int indx3)
XXTERN void svPutBitArrElem (const svOpenArrayHandle d, svBit value, int indx1,...)
XXTERN void svPutBitArrElem1 (const svOpenArrayHandle d, svBit value, int indx1)
XXTERN void svPutBitArrElem2 (const svOpenArrayHandle d, svBit value, int indx1, int indx2)
XXTERN void svPutBitArrElem3 (const svOpenArrayHandle d, svBit value, int indx1, int indx2, int indx3)
XXTERN svScope svGetScope (void)
XXTERN svScope svSetScope (const svScope scope)
XXTERN const char * svGetNameFromScope (const svScope)
XXTERN svScope svGetScopeFromName (const char *scopeName)
XXTERN int svPutUserData (const svScope scope, void *userKey, void *userData)
XXTERN void * svGetUserData (const svScope scope, void *userKey)
XXTERN int svGetCallerInfo (const char **fileName, int *lineNumber)
XXTERN int svIsDisabledState (void)
XXTERN void svAckDisabledState (void)

Variables

XXTERN typedef void * svScope
XXTERN typedef void * svOpenArrayHandle

Macro Definition Documentation

◆ DPI_DLLESPEC

#define DPI_DLLESPEC

Definition at line 58 of file svdpi.h.

◆ DPI_DLLISPEC

#define DPI_DLLISPEC

Definition at line 49 of file svdpi.h.

◆ DPI_EXTERN

#define DPI_EXTERN

Definition at line 64 of file svdpi.h.

◆ DPI_PROTOTYPES

#define DPI_PROTOTYPES

Definition at line 68 of file svdpi.h.

◆ EETERN

#define EETERN   DPI_EXTERN DPI_DLLESPEC

Definition at line 72 of file svdpi.h.

◆ sv_0

#define sv_0   0

Definition at line 76 of file svdpi.h.

◆ sv_1

#define sv_1   1

Definition at line 77 of file svdpi.h.

◆ SV_GET_SIGNED_BITS

#define SV_GET_SIGNED_BITS ( VALUE,
N )
Value:
((N) == 32 ? (VALUE) \
: (((VALUE) & (1 << (N))) ? ((VALUE) | ~SV_MASK(N)) \
: ((VALUE)&SV_MASK(N))))
#define SV_MASK(N)
Definition svdpi.h:111

Definition at line 116 of file svdpi.h.

◆ SV_GET_UNSIGNED_BITS

#define SV_GET_UNSIGNED_BITS ( VALUE,
N )
Value:
((N) == 32 ? (VALUE) : ((VALUE)&SV_MASK(N)))

Definition at line 113 of file svdpi.h.

◆ SV_MASK

#define SV_MASK ( N)
Value:
(~(-1 << (N)))

Definition at line 111 of file svdpi.h.

◆ SV_PACKED_DATA_NELEMS

#define SV_PACKED_DATA_NELEMS ( WIDTH)
Value:
(((WIDTH) + 31) >> 5)

Definition at line 105 of file svdpi.h.

◆ sv_x

#define sv_x   3

Definition at line 79 of file svdpi.h.

◆ sv_z

#define sv_z   2

Definition at line 78 of file svdpi.h.

◆ VPI_VECVAL

#define VPI_VECVAL

Definition at line 91 of file svdpi.h.

◆ XXTERN

Typedef Documentation

◆ p_vpi_vecval

typedef struct TVpiVecval * p_vpi_vecval

◆ s_vpi_vecval

typedef struct TVpiVecval s_vpi_vecval

◆ svBit

typedef svScalar svBit

Definition at line 83 of file svdpi.h.

◆ svBitVecVal

typedef uint32_t svBitVecVal

Definition at line 102 of file svdpi.h.

◆ svLogic

typedef svScalar svLogic

Definition at line 84 of file svdpi.h.

◆ svLogicVecVal

Definition at line 99 of file svdpi.h.

◆ svScalar

typedef uint8_t svScalar

Definition at line 82 of file svdpi.h.

Function Documentation

◆ svAckDisabledState()

XXTERN void svAckDisabledState ( void )

References XXTERN.

◆ svDimensions()

XXTERN int svDimensions ( const svOpenArrayHandle h)

Definition at line 74 of file SvDpiRuntime.cpp.

References svOpenArrayHandle.

Referenced by validateSvOpenArray().

◆ svDpiVersion()

XXTERN const char * svDpiVersion ( void )

References XXTERN.

◆ svGetArrayPtr()

XXTERN void * svGetArrayPtr ( const svOpenArrayHandle h)

Definition at line 80 of file SvDpiRuntime.cpp.

References svOpenArrayHandle.

Referenced by validateSvOpenArray().

◆ svGetArrElemPtr()

XXTERN void * svGetArrElemPtr ( const svOpenArrayHandle ,
int indx1,
... )

References svOpenArrayHandle, and XXTERN.

◆ svGetArrElemPtr1()

XXTERN void * svGetArrElemPtr1 ( const svOpenArrayHandle h,
int indx1 )

◆ svGetArrElemPtr2()

XXTERN void * svGetArrElemPtr2 ( const svOpenArrayHandle ,
int indx1,
int indx2 )

References svOpenArrayHandle, and XXTERN.

◆ svGetArrElemPtr3()

XXTERN void * svGetArrElemPtr3 ( const svOpenArrayHandle ,
int indx1,
int indx2,
int indx3 )

References svOpenArrayHandle, and XXTERN.

◆ svGetBitArrElem()

XXTERN svBit svGetBitArrElem ( const svOpenArrayHandle s,
int indx1,
... )

References svOpenArrayHandle, and XXTERN.

◆ svGetBitArrElem1()

XXTERN svBit svGetBitArrElem1 ( const svOpenArrayHandle s,
int indx1 )

References svOpenArrayHandle, and XXTERN.

◆ svGetBitArrElem1VecVal()

XXTERN void svGetBitArrElem1VecVal ( svBitVecVal * d,
const svOpenArrayHandle s,
int indx1 )

References svOpenArrayHandle, and XXTERN.

◆ svGetBitArrElem2()

XXTERN svBit svGetBitArrElem2 ( const svOpenArrayHandle s,
int indx1,
int indx2 )

References svOpenArrayHandle, and XXTERN.

◆ svGetBitArrElem2VecVal()

XXTERN void svGetBitArrElem2VecVal ( svBitVecVal * d,
const svOpenArrayHandle s,
int indx1,
int indx2 )

References svOpenArrayHandle, and XXTERN.

◆ svGetBitArrElem3()

XXTERN svBit svGetBitArrElem3 ( const svOpenArrayHandle s,
int indx1,
int indx2,
int indx3 )

References svOpenArrayHandle, and XXTERN.

◆ svGetBitArrElem3VecVal()

XXTERN void svGetBitArrElem3VecVal ( svBitVecVal * d,
const svOpenArrayHandle s,
int indx1,
int indx2,
int indx3 )

References svOpenArrayHandle, and XXTERN.

◆ svGetBitArrElemVecVal()

XXTERN void svGetBitArrElemVecVal ( svBitVecVal * d,
const svOpenArrayHandle s,
int indx1,
... )

References svOpenArrayHandle, and XXTERN.

◆ svGetBitselBit()

XXTERN svBit svGetBitselBit ( const svBitVecVal * s,
int i )

References XXTERN.

◆ svGetBitselLogic()

XXTERN svLogic svGetBitselLogic ( const svLogicVecVal * s,
int i )

References XXTERN.

◆ svGetCallerInfo()

XXTERN int svGetCallerInfo ( const char ** fileName,
int * lineNumber )

References XXTERN.

◆ svGetLogicArrElem()

XXTERN svLogic svGetLogicArrElem ( const svOpenArrayHandle s,
int indx1,
... )

References svOpenArrayHandle, and XXTERN.

◆ svGetLogicArrElem1()

XXTERN svLogic svGetLogicArrElem1 ( const svOpenArrayHandle s,
int indx1 )

References svOpenArrayHandle, and XXTERN.

◆ svGetLogicArrElem1VecVal()

XXTERN void svGetLogicArrElem1VecVal ( svLogicVecVal * d,
const svOpenArrayHandle s,
int indx1 )

References svOpenArrayHandle, and XXTERN.

◆ svGetLogicArrElem2()

XXTERN svLogic svGetLogicArrElem2 ( const svOpenArrayHandle s,
int indx1,
int indx2 )

References svOpenArrayHandle, and XXTERN.

◆ svGetLogicArrElem2VecVal()

XXTERN void svGetLogicArrElem2VecVal ( svLogicVecVal * d,
const svOpenArrayHandle s,
int indx1,
int indx2 )

References svOpenArrayHandle, and XXTERN.

◆ svGetLogicArrElem3()

XXTERN svLogic svGetLogicArrElem3 ( const svOpenArrayHandle s,
int indx1,
int indx2,
int indx3 )

References svOpenArrayHandle, and XXTERN.

◆ svGetLogicArrElem3VecVal()

XXTERN void svGetLogicArrElem3VecVal ( svLogicVecVal * d,
const svOpenArrayHandle s,
int indx1,
int indx2,
int indx3 )

References svOpenArrayHandle, and XXTERN.

◆ svGetLogicArrElemVecVal()

XXTERN void svGetLogicArrElemVecVal ( svLogicVecVal * d,
const svOpenArrayHandle s,
int indx1,
... )

References svOpenArrayHandle, and XXTERN.

◆ svGetNameFromScope()

XXTERN const char * svGetNameFromScope ( const svScope )

References svScope, and XXTERN.

◆ svGetPartselBit()

XXTERN void svGetPartselBit ( svBitVecVal * d,
const svBitVecVal * s,
int i,
int w )

References XXTERN.

◆ svGetPartselLogic()

XXTERN void svGetPartselLogic ( svLogicVecVal * d,
const svLogicVecVal * s,
int i,
int w )

References XXTERN.

◆ svGetScope()

XXTERN svScope svGetScope ( void )

References svScope, and XXTERN.

◆ svGetScopeFromName()

XXTERN svScope svGetScopeFromName ( const char * scopeName)

References svScope, and XXTERN.

◆ svGetUserData()

XXTERN void * svGetUserData ( const svScope scope,
void * userKey )

References svScope, and XXTERN.

◆ svHigh()

XXTERN int svHigh ( const svOpenArrayHandle h,
int d )

References svOpenArrayHandle, and XXTERN.

◆ svIncrement()

XXTERN int svIncrement ( const svOpenArrayHandle h,
int d )

References svOpenArrayHandle, and XXTERN.

◆ svIsDisabledState()

XXTERN int svIsDisabledState ( void )

References XXTERN.

◆ svLeft()

XXTERN int svLeft ( const svOpenArrayHandle h,
int d )

References svOpenArrayHandle, and XXTERN.

◆ svLow()

XXTERN int svLow ( const svOpenArrayHandle h,
int d )

References svOpenArrayHandle, and XXTERN.

◆ svPutBitArrElem()

XXTERN void svPutBitArrElem ( const svOpenArrayHandle d,
svBit value,
int indx1,
... )

References svOpenArrayHandle, and XXTERN.

◆ svPutBitArrElem1()

XXTERN void svPutBitArrElem1 ( const svOpenArrayHandle d,
svBit value,
int indx1 )

References svOpenArrayHandle, and XXTERN.

◆ svPutBitArrElem1VecVal()

XXTERN void svPutBitArrElem1VecVal ( const svOpenArrayHandle d,
const svBitVecVal * s,
int indx1 )

References svOpenArrayHandle, and XXTERN.

◆ svPutBitArrElem2()

XXTERN void svPutBitArrElem2 ( const svOpenArrayHandle d,
svBit value,
int indx1,
int indx2 )

References svOpenArrayHandle, and XXTERN.

◆ svPutBitArrElem2VecVal()

XXTERN void svPutBitArrElem2VecVal ( const svOpenArrayHandle d,
const svBitVecVal * s,
int indx1,
int indx2 )

References svOpenArrayHandle, and XXTERN.

◆ svPutBitArrElem3()

XXTERN void svPutBitArrElem3 ( const svOpenArrayHandle d,
svBit value,
int indx1,
int indx2,
int indx3 )

References svOpenArrayHandle, and XXTERN.

◆ svPutBitArrElem3VecVal()

XXTERN void svPutBitArrElem3VecVal ( const svOpenArrayHandle d,
const svBitVecVal * s,
int indx1,
int indx2,
int indx3 )

References svOpenArrayHandle, and XXTERN.

◆ svPutBitArrElemVecVal()

XXTERN void svPutBitArrElemVecVal ( const svOpenArrayHandle d,
const svBitVecVal * s,
int indx1,
... )

References svOpenArrayHandle, and XXTERN.

◆ svPutBitselBit()

XXTERN void svPutBitselBit ( svBitVecVal * d,
int i,
svBit s )

References XXTERN.

◆ svPutBitselLogic()

XXTERN void svPutBitselLogic ( svLogicVecVal * d,
int i,
svLogic s )

References XXTERN.

◆ svPutLogicArrElem()

XXTERN void svPutLogicArrElem ( const svOpenArrayHandle d,
svLogic value,
int indx1,
... )

References svOpenArrayHandle, and XXTERN.

◆ svPutLogicArrElem1()

XXTERN void svPutLogicArrElem1 ( const svOpenArrayHandle d,
svLogic value,
int indx1 )

References svOpenArrayHandle, and XXTERN.

◆ svPutLogicArrElem1VecVal()

XXTERN void svPutLogicArrElem1VecVal ( const svOpenArrayHandle d,
const svLogicVecVal * s,
int indx1 )

References svOpenArrayHandle, and XXTERN.

◆ svPutLogicArrElem2()

XXTERN void svPutLogicArrElem2 ( const svOpenArrayHandle d,
svLogic value,
int indx1,
int indx2 )

References svOpenArrayHandle, and XXTERN.

◆ svPutLogicArrElem2VecVal()

XXTERN void svPutLogicArrElem2VecVal ( const svOpenArrayHandle d,
const svLogicVecVal * s,
int indx1,
int indx2 )

References svOpenArrayHandle, and XXTERN.

◆ svPutLogicArrElem3()

XXTERN void svPutLogicArrElem3 ( const svOpenArrayHandle d,
svLogic value,
int indx1,
int indx2,
int indx3 )

References svOpenArrayHandle, and XXTERN.

◆ svPutLogicArrElem3VecVal()

XXTERN void svPutLogicArrElem3VecVal ( const svOpenArrayHandle d,
const svLogicVecVal * s,
int indx1,
int indx2,
int indx3 )

References svOpenArrayHandle, and XXTERN.

◆ svPutLogicArrElemVecVal()

XXTERN void svPutLogicArrElemVecVal ( const svOpenArrayHandle d,
const svLogicVecVal * s,
int indx1,
... )

References svOpenArrayHandle, and XXTERN.

◆ svPutPartselBit()

XXTERN void svPutPartselBit ( svBitVecVal * d,
const svBitVecVal s,
int i,
int w )

References XXTERN.

◆ svPutPartselLogic()

XXTERN void svPutPartselLogic ( svLogicVecVal * d,
const svLogicVecVal s,
int i,
int w )

References XXTERN.

◆ svPutUserData()

XXTERN int svPutUserData ( const svScope scope,
void * userKey,
void * userData )

References svScope, and XXTERN.

◆ svRight()

XXTERN int svRight ( const svOpenArrayHandle h,
int d )

References svOpenArrayHandle, and XXTERN.

◆ svSetScope()

XXTERN svScope svSetScope ( const svScope scope)

References svScope, and XXTERN.

◆ svSize()

XXTERN int svSize ( const svOpenArrayHandle h,
int d )

Definition at line 92 of file SvDpiRuntime.cpp.

References svOpenArrayHandle.

Referenced by validateSvOpenArray().

◆ svSizeOfArray()

Variable Documentation

◆ svOpenArrayHandle

◆ svScope

XXTERN typedef void* svScope