Table of Contents Previous page Next page Index

ModelSim Documentation Bookcase

Model Technology Inc.


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 be accessed using the shift command.

To determine the current number of macro parameters, use the argc variable.

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


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