Technical data
VSIM function descriptions
ModelSim EE/PLUS Reference Manual VHDL Foreign Language Interface and Verilog PLI
-
467
VSIM function descriptions
The VSIM function descriptions listed below are in alphabetic order by function
name. The function declarations are in the
mti.h
header file located in the
Model
Sim
installation directory.
void mti_AddCommand(char *cmd_name, funcptr func)
Adds a VSIM command. The cmd_name case is significant. The VSIM command
interpreter subsequently recognizes the command and calls the user supplied function
whenever the command is recognized. The entire command line (the command and any
arguments) are passed to the user function as a single char * argument.
It is legal to add a command with the same name as a previously added command
(or even a VSIM command), but only the command added last has any effect.
void mti_AddEnvCB(funcptr func, void *param)
Causes the function to be called whenever the environment is changed, e.g. the user uses
the
environment
command (p312).
void mti_AddInputReadyCB(int fd, funcptr func, void *param)
Causes the function to be called when the specified file descriptor has data available for
reading. This is similar to the function XtAppAddInput in X11R5.
void mti_AddLoadDoneCB(funcptr func, void *param)
Causes the function to be called when elaboration of the entire design tree is complete. The
function is passed the parameter specified by “param”.
void mti_AddOutputReadyCB(int fd, funcptr func, void *param)
Causes the function to be called when the specified file descriptor is available for writing.
void mti_AddQuitCB(funcptr func, void *param)
Causes the function to be called when the simulator exits. The function is passed the
parameter specified by “param”.
void mti_AddRestartCB(funcptr func, void *param)
Allows you to specify a function to call before the simulator is restarted. The function is
passed the parameter specified by “param”. This function should free any memory that was
allocated.