I am writing timing constraints and pin assignments for an FPGA design in Tcl. A line such as set_input_delay 2.0 -clock clk [get_ports data[3]] fails with invalid command name "3". Putting the name in double quotes gives the same error, and when I build names in a loop with "data[$i]" I get invalid command name "0".
How should bus bits be written in constraint files and scripts, and how do I loop over all bits of a bus?




