Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


User-defined variables

Temporary, user-defined variables can be created with the Tcl set command. Like simulator variables, user-defined variables are preceded by a dollar sign when referenced. To create a variable with the set command:

set user1 7 

You can use the variable in a command like:

echo "user1 = $user1" 

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