Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


Variable substitution

When a $<var_name> is encountered, the Tcl parser will look for variables that have been defined either by ModelSim or by you, and substitute the value of the variable.


Note: Tcl is case sensitive for variable names.

To access environment variables, use the construct:

$env(<var_name>) 
echo My user name is $env(USER) 

Environment variables can also be set using the env array:

set env(SHELL) /bin/csh 

See "Simulator state variables" for more information about ModelSim-defined variables.


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