Technical data

VSIM function descriptions
472
-
VHDL Foreign Language Interface and Verilog PLI ModelSim EE/PLUS Reference Manual
free
C-library function). If buf is not NULL, then VSIM copies the value into buf and
returns buf.
void * mti_GetArrayVarValue(varID var, void * buf)
Gets the value of an array variable. If buf is NULL, then VSIM returns a pointer to the
value, which should be treated as read-only data. If buf is not NULL, then VSIM copies the
value into buf and returns buf.
regionID mti_GetCurrentRegion(void)
Returns the regionID of the current region. The operation is the same for Verilog instances.
driverID * mti_GetDriverSubelements(driverID driv, driverID *buf)
Returns an array of driverIDs for each of the subelements of the driver “driv”. If buf is
NULL, then VSIM allocates memory for the value and returns a pointer to it (the caller is
responsible for freeing this memory with the
free
C-library function). If buf is not NULL,
then VSIM copies the value into buf and returns buf.
char ** mti_GetEnumValues(typeID type)
Type should be a typeID for an enumerated type. Returns a pointer to an array of strings.
The strings correspond to the literals in the enumerated type. The number of elements in
the array can be found by calling mti_TickLength. The first element in the array is the
left-most value of the enumerated type.
interface_list *mti_GetGenericList(regionID)
Gets the generics defined for the specified region. Returned in the same interface format as
the C initialization function generics list. See "The C initialization function" (p457).
char *mti_GetLibraryName(regionID reg)
Returns the logical name of the library that contains the design unit identified by the region
"reg". If the region is not a design unit, then the parent design unit is used. The operation is
the same for Verilog instances.
char *mti_GetPrimaryName(regionID reg)
Returns the primary name of the region (i.e., an entity, package, or configuration name). If
the region is not a primary design unit, then the parent primary design unit is used. Returns
module name for Verilog instances.
char *mti_GetProcessName(processID)
Returns name of process given process ID.
char *mti_GetProductVersion(void)
Returns product name string.