Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


batch_mode

The batch_mode command returns a 1 if ModelSim is operating in batch mode, otherwise returns a 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 /* 
} 

See also

"Running command-line and batch-mode simulations"


Model Technology Inc.
Model Technology Incorporated
Voice: (503) 641-1340
Fax: (503)526-5410
www.model.com
sales@model.com
Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase