Table of Contents Previous page Next page Index

ModelSim

Model Technology Inc.


FLI functions by category


FLI region functions

FLI process functions

FLI signal functions

FLI driver functions

FLI variable functions

FLI type functions

FLI callback functions

FLI memory management functions

FLI checkpoint/restore functions

FLI time and event functions

FLI communication and command functions

FLI miscellaneous functions

This chapter lists the FLI functions by category and provides a brief description. For information on creating and using foreign architectures and subprograms, see "Introduction" . For complete details on the functions including purpose, syntax, and usage, see "FLI function definitions" .

Table 1: FLI region functions 
Function
Action
Creates a new region
Finds a region by name
Gets the first subregion inside of a region
Gets the current elaboration region during elaboration or the region of the currently active process or signal resolution function or the current environment during simulation
Gets the current elaboration region during elaboration or the current environment during simulation
Gets a list of the VHDL generics defined for a region
Gets the first top-level region
Gets the parent region of a region
Gets the next region at the same level as a region
Gets the physical name of the library that contains a region
Gets the primary name of a region (entity, package, or module)
Gets the full hierarchical name of a region
Gets the type of a region (VHDL or Verilog)
Gets the simple name of a region
Gets the name of the source file which contains a region
Gets the secondary name of a VHDL region
Gets the secondary name of a VHDL region
Gets the type of a region (VHDL or Verilog)
Gets a list of the VHDL generics defined for a region

Table 2: FLI process functions 
Function
Action
Creates a new VHDL process
Creates a new VHDL process with a specific priority
Gets the first VHDL process in a region
Gets the next VHDL process in a region
Gets the name of a VHDL process
Sensitizes a VHDL process to a VHDL signal
Desensitizes a VHDL process to the VHDL signals to which it is sensitive
Schedules a VHDL process to wake up at a specific time

Table 3: FLI signal functions 
Function
Action
Creates a new VHDL signal
Finds a port signal in a port interface list
Finds a VHDL signal by name
Gets the first VHDL signal in a region
Gets the next VHDL signal in a region
Gets the value of a VHDL signal of type array
Gets a handle to all of the signals driving a signal
Gets the mode (direction) of a VHDL signal
Gets the simple name of a scalar or top-level composite VHDL signal
Gets the full simple name of a VHDL signal including array indices and record subelement names
Gets the region in which a VHDL signal is declared
Gets the subelements of a composite VHDL signal
Gets the type of a VHDL signal
Gets the value of a scalar VHDL signal of type enumeration, integer, or physical
Gets the value of a VHDL signal of any type except record
Gets the string image of a VHDL signal's value
Sets the value of a VHDL signal
Forces a value onto a VHDL signal
Releases a force on a VHDL signal

Table 4: FLI driver functions
Function
Action
Creates a driver on a VHDL signal
Finds out if a VHDL signal has any drivers on it
Gets the names of all drivers on a VHDL signal
Gets the subelements of a composite driver
Gets the values of all drivers on a VHDL signal
Schedules a driver to drive a value onto a VHDL signal
Sets the owning process of a driver

Table 5: FLI variable functions 
Function
Action
Finds a VHDL variable, generic, or constant by name
Gets the first VHDL variable, generic, or constant in a process
Gets the next VHDL variable, generic, or constant in a process
Gets the value of a VHDL variable of type array
Gets a pointer to a VHDL variable's value space
Gets the string image of a VHDL variable's value (by name)
Gets the string image of a VHDL variable's value (by ID)
Gets the simple name of a VHDL variable
Gets the subelements of a composite VHDL variable
Gets the type of a VHDL variable
Get the value of a scalar VHDL variable of type enumeration, integer, or physical
Gets the value of a VHDL variable of any type except record
Sets the value of a VHDL variable

Table 6: FLI type functions
Function
Action
Creates an array type
Creates an enumeration type
Creates a real type
Creates a scalar type
Creates a time type
Gets the type of an array type's subelements
Gets the number of subelements in a record type
Gets the values of an enumeration type
Gets the unit information of a physical type
Gets the kind of a type
Gets the string image of a value of a specific type
Gets the direction of a type
Gets the high value of a ranged type
Gets the left value of a ranged type
Gets the length of a type
Gets the low value of a ranged type
Gets the right value of a ranged type

Table 7: FLI callback functions 
Function
Action
Adds an environment change callback
Adds an elaboration done callback
Adds a simulator exit callback
Adds a simulator restart callback
Adds a simulator restore callback
Adds a simulator restore done callback
Adds a simulator checkpoint callback
Adds a simulator run status change callback
Adds or removes a file/pipe input ready callback
Adds or removes a file/pipe output ready callback
Adds or removes a socket input ready callback
Adds or removes a socket output ready callback
Removes an environment change callback
Removes an elaboration done callback
Removes a simulator exit callback
Removes a simulator restart callback
Removes a simulator restore callback
Removes a simulator restore done callback
Removes a simulator checkpoint callback
Removes a simulator run status change callback

Table 8: FLI memory management functions
Function
Action
Allocates simulator-managed memory
Re-allocates simulator-managed memory
Frees simulator-managed memory
Frees memory allocated by an FLI function that would normally be freed with the free() C-library function

Table 9: FLI checkpoint/restore functions
Function
Action
Gets the name of the current checkpoint file
Determines if a restore operation is in progress
Determines if a cold restore operation is in progress
Saves a block of data to the checkpoint file
Saves a byte of data to the checkpoint file
Saves sizeof(long) bytes of data to the checkpoint file
Saves sizeof(short) bytes of data to the checkpoint file
Saves a null-terminated string to the checkpoint file
Gets a block of data from the checkpoint file
Gets a byte of data from the checkpoint file
Gets sizeof(long) bytes of data from the checkpoint file
Gets sizeof(short) bytes of data from the checkpoint file
Gets a null-terminated string from the checkpoint file
Restores a process that was created by mti_CreateProcess()

Table 10: FLI time and event functions
Function
Action
Gets the simulator iteration count for the current time step
Gets the low order 32 bits of the 64-bit current simulation time
Gets the high order 32 bits of the 64-bit current simulation time
Gets the upper and lower 32 bits of the 64-bit current simulation time
Gets the next event time (from a foreign subprogram or callback)
Gets the next event time (from a VHDL process)
Gets the simulator resolution limit
Gets the stop time of the current simulation run

Table 11: FLI communication and command functions
Function
Action
Adds a user-defined simulator command
Adds a user-defined Tcl-style simulator command
Gets the Tcl_Interp pointer used in the simulator
Executes a simulator command
Executes a simulator command with Tcl return status and no transcribing
Prompts the user for an input string
Prints a message to the main transcript window
Prints a formatted message to the main transcript window
Requests the simulator to halt
Requests the simulator to halt with a fatal error
Requests the simulator to exit immediately

Table 12: FLI miscellaneous functions
Function
Action
Gets the name and version of the simulator
Gets the name of the waveform logfile (.wlf)
Gets the value of an entry in the project (.ini) file
Writes an entry to the project (.ini) file
Detects the first call to the initialization function
Requests that the current shared library not be unloaded on restart or load of a new design



Model Technology Inc.
Voice: (503) 641-1340
Fax: (503)526-5410
http://www.model.com
sales@model.com
TOC PREV NEXT INDEX

ModelSim