Action Handle Array Traversal
Traversal Context
| Context | Semantics |
|---|---|
parallel |
All array elements are scheduled for traversal in parallel. |
schedule |
All array elements are scheduled for traversal independently. |
select |
One array element is randomly selected and traversed. |
sequence |
All array elements are scheduled for traversal in sequence from 0 to N-1. |
Multidimensional Arrays
An action handle array may have more than one dimension. A traversal can name one element, one sub-array, or the whole array:
sequence: the outer dimension is traversed in order, each element with all of its sub-dimensions, e.g.,a[0][0],a[0][1],a[1][0],a[1][1]fora[2][2].select: one leaf element (one action handle) is selected and traversed.- An attribute initialization list or an inline constraint cannot be applied when a whole array or sub-array is traversed.
parallel
All array elements are scheduled for traversal in parallel.
schedule
Both actions (i.e., sub with "Hello" and "World") in the schedule block will be traversed in a random order.
There are two possible results:
select
Only one action in the select block will be chosen and traversed.
There are two possible results:
sequence
All array elements are scheduled for traversal in sequence from 0 to N-1.