User guide

18-80
DirectC Interface
scalar
vc_getMemoryScalar(vc_han
dle, U indx)
Returns the value of a one bit memory element.
void
vc_putMemoryScalar(vc_han
dle, U indx, scalar)
Passes a value, of type scalar, to a Verilog memory
element. You specify the memory by vc_handle and the
element by the indx parameter.
int
vc_getMemoryInteger(vc_ha
ndle, U indx)
Returns the integer equivalent of the data bits in a memory
element whose bit-width is 32 bits or less.
void
vc_putMemoryInteger(vc_ha
ndle, U indx, int)
Passes an integer value to a memory element that is 32
bits or fewer. You specify the memory by vc_handle and
the element by the indx parameter.
void
vc_get4stMemoryVector(vc_
handle, U indx, vec32 *)
Copies the value in an Verilog memory element to an
element in an array. This routine copies both the data and
control bytes. It copies them into an array of type vec32.
void
vc_put4stMemoryVector(vc_
handle, U indx,
vec32 *)
Copies Verilog data from a vec32 array to a Verilog
memory element.
void
vc_get2stMemoryVector(vc_
handle, U indx, U *)
Copies the data bytes, but not the control bytes, from a
Verilog memory element to an array in your C/C++
function.
void
vc_put2stMemoryVector(vc_
handle, U indx, U *)
Copies Verilog data from a U array to a Verilog memory
element. This routine is used in the previous example.
void
vc_putMemoryValue(vc_hand
le, U indx, char *)
This routine works like the vc_putValue routine except that
it is for passing values to a memory element instead of to
a reg or bit. You enter an parameter to specify the element
(index) you want the routine to pass the value to.
void
vc_putMemoryValueF(vc_han
dle, U indx, char, char *)
This routine works like the vc_putValueF routine except
that it is for passing values to a memory element instead
of to a reg or bit. You enter an parameter to specify the
element (index) you want the routine to pass the value to.
char
*vc_MemoryString(vc_handl
e, U indx)
This routine works like the vc_toString routine except that
it is for passing values to from memory element instead of
to a reg or bit. You enter an parameter to specify the
element (index) you want the routine to pass the value of.
Access Routine Description