Technical data
VSIM function descriptions
ModelSim EE/PLUS Reference Manual VHDL Foreign Language Interface and Verilog PLI
-
479
void mti_ScheduleWakeup(processID process, DELAY delay)
Schedules the process to be called after a delay. A process may have no more than one
pending wake-up call. A call to mti_ScheduleWakeup cancels a prior pending wake-up call
regardless of the delay values. The delay time units are equivalent to the current simulator
time unit setting. See mti_Resolution.
void mti_Sensitize(processID proc, signalID sig, process_trigger_enum when)
Causes a C process to be called when a signal is updated. If
when
is MTI_EVENT then the
process is called when the signal changes value. If
when
is MTI_ACTIVE then it is called
whenever the signal is active.
void mti_SetDriverOwner(driverID driverid, processID processid)
Makes the processID the owner of the driverID. Normally the mti_CreateDriver makes
the <foreign_architecture> process the owner of a new driver.
void mti_SetSignalValue(signalID sig, long val)
Sets the signal to a new value. The signal may be either an unresolved signal or a resolved
signal. Setting the signal makes it “active” in the current delta. If the new value is different
than the old value, then an “event” occurs on the signal in the current delta. If the signal
being set is an array type or TIME or REAL, then value is considered to be “void *” instead
of long.
Setting a resolved signal is not the same as driving it (use mti_ScheduleDriver to
drive a signal). After a resolved signal is set it may be changed to a new value the
next time that its resolution function is activated.
void mti_SetVarValue(varID var, long val)
Sets the variable to a new value. If the variable being set is an array type or TIME or REAL,
then value is considered to be “void *” instead of long.
char *mti_SignalImage(signalID sig)
Returns a pointer to a static buffer containing the string image of the value of the signal
specified by sig. The image is the same as would be returned by the VHDL 1076-1993
attribute IMAGE.
long mti_TickDir(typeID type)
Returns the index direction of an array typeID: +1 for ascending, -1 for descending, and 0
for not-defined (as when the type is really a scalar).
long mti_TickLeft(typeID type)
Returns the value of type'LEFT.