Technical data

Command return values
ModelSim EE/SE Command Reference Command Syntax and Conventions CR-243
Command return values
All simulator commands are invoked using Tcl. For most commands that write
information to the Main window, that information is also available as a Tcl result.
By using command substitution the results can be made available to another
command or assigned to a Tcl variable. For example:
set aluinputs [find -in alu/*]
sets variable "aluinputs" to the result of the find command (CR-85).
Command shortcuts
You may abbreviate command syntax, but theres a catch. The minimum
characters required to execute a command are those that make it unique.
Remember, as we add new commands some of the old shortcuts may not work.
For this reason ModelSim does not allow command name abbreviations in macro
files. This minimizes your need to maintain macro files as new commands are
added.
Command history shortcuts
The simulator command history may be reviewed, or commands may be reused,
with these shortcuts at the ModelSim/VSIM prompt:
Shortcut Description
!!
repeats the last command
!n
repeats command number n; n is the VSIM prompt number, i.e., for this prompt:
VSIM 12>, n =12
!abc
repeats the most recent command starting with "abc"
^xyz^ab^
replaces "xyz" in the last command with "ab"
up and down arrows scroll through the command history with the keyboard arrows
click on prompt left-click once on a previous ModelSim or VSIM prompt in the transcript to copy
the command typed at that prompt to the active cursor
his or history
shows the last few commands (up to 50 are kept)