Technical data

VSIM function descriptions
478
-
VHDL Foreign Language Interface and Verilog PLI ModelSim EE/PLUS Reference Manual
long mti_RestoreLong (void)
Returns sizeof(long) bytes of data read from the checkpoint file.
void mti_RestoreProces (processID proc, char *name, funcptr func, void *param)
Updates the corresponding call to mti_CreateProcess(). The first argument is the processID
that was returned from the original mti_CreateProcess() call. The remaining arguments are
the same as the original mti_CreateProcess() call.
short mti_RestoreShort (void)
Returns sizeof(short) bytes of data read from the checkpoint file.
char *mti_RestoreString (void)
Returns a pointer to a temporary buffer holding a null terminated string read from the
checkpoint file. If the size of the string is less than 1024 bytes,
you will need to copy the
string
. Otherwise the string will be overwritten on the next mti_RestoreString call. If the
size exceeds the 1024 byte temporary buffer size, memory is allocated automatically by the
mti_RestoreString function. The function is designed to handle unlimited size strings.
void mti_SaveBlock (char *pointer, long size)
Saves a block of data of the specified size, pointed to by pointer.
void mti_SaveChar (char data)
Saves one byte of data to the checkpoint file.
void mti_SaveLong (long data)
Saves sizeof(long) bytes of data to the checkpoint file.
void mti_SaveShort (short data)
Saves sizeof(short) bytes of data to the checkpoint file.
void mti_SaveString (char *data)
Saves a null-terminated string to the checkpoint file. The function is designed to handle
unlimited size strings.
void mti_ScheduleDriver(driverID driver, long value, DELAY delay,
driver_mode_enum mode)
Schedules a transaction on a driver. If the signal being driven is an array type or TIME or
REAL, then value is considered to be “void *” instead of long. The mode parameter may
be MTI_INERTIAL or MTI_TRANSPORT.
The delay time units are equivalent to the current simulator time unit setting. See
mti_Resolution.