foreach

foreach <variable 1> <list 1> <variable 2> <list 2> ...

This function loops through multiple collections of Efinity Tcl objects. All collections must be of the same Efinity Tcl object type.

# loop through two flipflop lists and get a timing report for 
# each pair; the two lists should have the same length.
foreach launch_ff [get_cells <launch_pattern>] \
              capture_ff [get_cells <capture_pattern>] {
       report_timing -from $launch_ff -to $capture_ff
}