linsert

linsert <list> <index> <new list or element>

This function inserts a new list or elements before the specified <index> in the collection. All elements must be Efinity Tcl objects.

# Insert the ff_list in the first position of the lut_list
set lut_list [get_cells LUT*]
set ff_list [get_cells *~FF]
set combined [linsert $lut_list 1 $ff_list]

# Insert the ff_list at the end of the lut_list
set lut_list [get_cells LUT*]
set ff_list [get_cells *~FF]
set combined [linsert $lut_list end $ff_list]

# Add one cell to the end of the lut_list
set combined [linsert $lut_list end [get_cells cell1]]