Technical data
batch_mode
CR-38 ModelSim Commands ModelSim EE/SE Command Reference
batch_mode
The batch_mode command returns a 1 if VSIM is operating in batch mode,
otherwise returns a 0. It is typically used as a condition in an if statement.
Examples
Some GUI commands do not exist in batch mode. If you want to write a script that
will work in or out of batch mode you can also use the batch_mode command to
determine which command to use. For example:
if [batch_mode] {
log /*
} else {
add wave /*
}
See also
"Running command-line and batch-mode simulations"
(E-440)