Technical data
echo
ModelSim EE/PLUS Reference Manual Simulator Command Reference
-
307
echo
The
echo
command displays a specified message in the VSIM Main window.
Syntax
echo
<text_string>
Arguments
<text_string>
Specifies the message text to be displayed. Required. If the text string is surrounded by
quotes, blank spaces are displayed as entered. If quotes are omitted, two or more adjacent
blank spaces are compressed into one space.
Examples
echo “The time is $now ns.”
If the current time is 1000 ns, this command produces the message:
The time is 1000 ns.
If the quotes are omitted, all blank spaces of two or more are compressed into one
space.
echo The time is $now ns.
If the current value of counter is 21, this command produces the message:
The time is 1000 ns.
echo
can also use command substitution, such as:
echo The hex value of counter is [examine -hex counter].
If the current value of counter is 21 (15 hex), this command produces:
The hex value of counter is 15.