User guide
18-79
DirectC Interface
void
vc_StringToVector(char *,
vc_handle)
Converts a C string (a pointer to a sequence of ASCII
characters terminated with a null character) into a Verilog
string (a vector with 8-bit groups representing characters).
void
vc_VectorToString(vc_hand
le, char *)
Converts a vector value to a string value.
int
vc_getInteger(vc_handle)
Same as vc_toInteger.
void
vc_putInteger(vc_handle,
int)
Passes an int value by reference through a vc_handle to
a scalar reg or bit or a vector bit that is 32 bits or less.
vec32
*vc_4stVectorRef(vc_handl
e)
Returns a vec32 pointer to a four state vector. Returns
NULL if the specified vc_handle is not to a four-state vector
reg.
U
*vc_2stVectorRef(vc_handl
e)
This routine returns a U pointer to a bit vector that is larger
than 32 bits. If you specify a short bit vector (32 bits or
fewer) this routine returns a NULL value.
void
vc_get4stVector(vc_handle
, vec32 *)
void
vc_put4stVector(vc_handle
, vec32 *)
Passes a four state vector by reference to a vc_handle to
and from an array in C/C++ function. vc_get4stVector
receives the vector from Verilog and passes it to the array.
vc_put4stVector passes the array to Verilog.
void
vc_get2stVector(vc_handle
, U *)
void
vc_put2stVector(vc_handle
, U *)
Passes a two state vector by reference to a vc_handle to
and from an array in C/C++ function. vc_get2stVector
receives the vector from Verilog and passes it to the array.
vc_put4stVector passes the array to Verilog.
UB
*vc_MemoryRef(vc_handle)
Returns a pointer of type UB that points to a memory in
Verilog.
UB
*vc_MemoryElemRef(vc_hand
le, U indx)
Returns a pointer to an element (word, address or index)
of a Verilog memory. You specify the vc_handle of the
memory and the element.
Access Routine Description