Contents
Up
Previous
Next


Variable declaration


A variable is a modifiable data object that may be used in sequential portions of a design (i.e., in processes and procedures or functions). A variable is not special in the sense that it is like data objects of other programming languages. When a value is assigned to a variable object the value of that object is changed immediately. A variable is modified by the variable assignment statement. The grammar rule for a variable declaration is:
variable-declaration : 
    VARIABLE name-list ":" subtype [ ":=" expression ] ";"

This declares variables of the subtype, one for each name in the name list. If the expression appears, it will be the initial value of the variable. If the expression does not appear, then the initial value is the left bound of its subtype.