Technical data

VSIM function descriptions
ModelSim EE/PLUS Reference Manual VHDL Foreign Language Interface and Verilog PLI
-
473
char * mti_GetRegionFullName(regionID reg)
Returns the full hierarchical name of the region. The name is stored in a buffer that is
overwritten on each call to this function. Do not free this pointer. The operation is the same
for Verilog instances.
int mti_GetRegionKind PROTO((regionID reg))
Given a region return it's kind (i.e. Verilog or VHDL). The value returned is one of the
values defined in
acc_user.h
or
acc_vhdl.h
.
char * mti_GetRegionName(regionID reg)
Returns the name of the region. Do not free this pointer.The operation is the same for
Verilog instances.
char *mti_GetRegionSourceName(regionID reg)
Returns the name of the VHDL source file corresponding to the current region. The
operation is the same for Verilog instances.
int mti_GetResolutionLimit(void)
Returns the simulator resolution limit in log10 seconds. The value ranges from -15 (1fs) to
2 (100 sec). For example, the function returns n from the expression: time_scale = 1*10^n
seconds; a time scale of 1 ns will return -9 and a time scale of 100 ps will return -10.
char *mti_GetSecondaryName(regionID reg)
Returns the secondary name of the region (i.e., an architecture or package body name). If
the region is not a secondary design unit, then the parent secondary design unit is used.
Returns NULL for Verilog modules.
dir_enum mti_GetSignalMode(signalID sig)
Returns the port mode of the signal. The mode will be: MTI_DIR_IN, MTI_DIR_OUT,
MTI_DIR_INOUT or MTI_INTERNAL. MTI_INTERNAL means that the signal is not a
port.
char * mti_GetSignalName(signalID sig)
Returns the name of the given signal.
char * mti_GetSignalRegion(signalID sig)
Returns the regionID for the given signal.
signalID * mti_GetSignalSubelements(signalID sig, signalID *buf)
Returns an array of signalIDs for each of the subelements of the signal “sig”. If buf is
NULL, then VSIM allocates memory for the value and returns a pointer to it (the caller is