Technical data
VSIM function descriptions
476
-
VHDL Foreign Language Interface and Verilog PLI ModelSim EE/PLUS Reference Manual
{
Tcl_Interp *interp = mti_Interp();
int stat = mti_Cmd("examine foo");
if (stat == TCL_OK) {
printf("Examine foo results = %s\n", interp->result);
} else {
printf("Command Error: %s\n", interp->result);
}
}
int mti_IsColdRestore (void)
Returns 1 when a “cold” restore operation is in progress. Otherwise returns 0. A “cold”
restore is when VSIM has been terminated and is re-invoked with the
-restore
command-
line option.
int mti_IsFirstInit(void)
Returns 1 if this is the first call to the initialization function, 0 if the simulation has been
restarted.
int mti_IsRestore (void)
Returns 1 when a restore operation is in progress. Otherwise returns 0.
void *mti_Malloc (unsigned long size)
Allocates a block of memory of the specified size and returns a pointer to it. The memory
is initialized to zero. On restore, the memory block is guaranteed to be restored to the same
location with the values contained at the time of the checkpoint.
processID mti_NextProcess()
Returns the process ID for the next process in that region.
regionID mti_NextRegion(regionID reg)‘
Returns the regionID of the next region at the same level. Returns NULL if this is the last
region. See mti_FirstLowerRegion. The operation is the same for Verilog instances.
signalID mti_NextSignal(void)
Returns the signalID of the next signal in this region. Returns NULL if this is the last signal.
See mti_FirstSignal.
long mti_Now(void)
Returns the low order 32 bits of the current simulation time. The time units are equivalent
to the current simulator time unit setting . See mti_Resolution.