3. Statements : OpenROAD Language Statements : For Statement : Parameters—For Statement
 
Share this page                  
Parameters—For Statement
This statement has the following parameters:
label
Specifies a character string identifying each for statement. The label allows an endloop or continue statement to break out of a nested series of for or while statements to a specified level. The label precedes the for keyword and is followed by a colon. The label must be a unique alphanumeric identifier and not a keyword.
indexvariable
Specifies an integer variable that is incremented (to) or decremented (downto) after each iteration of the for loop. Its contents upon exit from the for loop are undefined.
startexpression
Specifies an integer expression to which the indexvariable is set before the first iteration of the for loop
endexpression
Specifies an integer expression to which indexvariable is compared before each iteration of the for loop (including the first iteration). It is re-evaluated for each comparison.
If indexvariable > endexpression (to) or indexvariable < endexpression (downto), the for loop is terminated.
statementlist
See StatementList (see StatementList).