Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


Command substitution

Placing a command in square brackets [ ] will cause that command to be evaluated first and its results returned in place of the command. An example is:

set a 25
set b 11
set c 3
echo "the result is [expr ($a + $b)/$c]" 

will output:

"the result is 12" 

This feature allows VHDL variables and signals, and Verilog nets and registers to be accessed using:

[examine -<radix> name] 

The %name substitution is no longer supported. Everywhere %name could be used, you now can use [examine -value -<radix> name] which allows the flexibility of specifying command options. The radix specification is optional.


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