User guide

18-77
DirectC Interface
If the U type parameter has a value greater than 0, it returns the
number of values in the index specified by the parameter. There
is an error condition if this parameter is out of the range of indices.
If the vc_handle parameter is not an array, it returns 0.
Summary of Access Routines
Table 18-1 summarizes all the access routines described in the
previous section
Table 18-1 Summary of Access Routines
Access Routine Description
int
vc_isScalar(vc_handle)
Returns a 1 value if the vc_handle is for a one-bit reg or
bit. It returns a 0 value for a vector reg or bit or any memory
including memories with scalar elements.
int
vc_isVector(vc_handle)
This routine returns a 1 value if the vc_handle is to a vector
reg or bit. It returns a 0 value for a vector bit or reg or any
memory.
int
vc_isMemory(vc_handle)
This routine returns a 1 value if the vc_handle is to a
memory. It returns a 0 value for a bit or reg that is not a
memory.
int
vc_is4state(vc_handle)
This routine returns a 1 value if the vc_handle is to a reg
or memory that simulates with four states. It returns a 0
value for a bit or a memory that simulates with two states.
int
vc_is2state(vc_handle)
This routine does the opposite of the vc_is4state routine.
int
vc_is4stVector(vc_handle)
This routine returns a 1 value if the vc_handle is to a vector
reg. It returns a 0 value if the vc_handle is to a scalar reg,
scalar or vector bit, or to a memory.
int
vc_is2stVector(vc_handle)
This routine returns a 1 value if the vc_handle is to a vector
bit. It returns a 0 value if the vc_handle is to a scalar bit,
scalar or vector reg, or to a memory.
int vc_width(vc_handle) Returns the width of a vc_handle.