Download ModelSim PE Reference Manual

Transcript
Commands
batch_mode
batch_mode
This command returns “1” if ModelSim is operating in batch mode, otherwise it returns “0.” It
is typically used as a condition in an if statement.
Syntax
batch_mode
Arguments
None
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 use the batch_mode command to determine which command to
use. For example:
if [batch_mode] {
log /*
} else {
add wave /*
}
Related Topics
•
Modes of Operation
ModelSim PE Reference Manual, v10.0d
73