Technical data

shift
ModelSim EE/SE Command Reference ModelSim Commands CR-147
shift
The shift command shifts macro parameter values down one place, so that the
value of parameter $2 is assigned to parameter $1, the value of parameter $3 is
assigned to $2, etc. The previous value of $1 is discarded.
The shift command and macro parameters are used in macro files. If a macro file
requires more than nine parameters, they can accessed using the shift command.
To determine the current number of macro parameters, use the argc
(B-420).
Syntax
shift
Arguments
None.
Description
For a macro file containing nine macro parameters defined as $1 to $9, one shift
command shifts all parameter values one place to the left. If more than nine
parameters are named, the value of the tenth parameter becomes the value of $9
and can be accessed from within the macro file.
See also
do command
(CR-67)