1 puts "JTAG index N: [lindex $argv 0]"
2 puts "JTAG-N bitfile to program: [lindex $argv 1]"
8 open_hw_target [lindex [get_hw_targets *] [lindex $argv 0]]
9 set_property PROGRAM.FILE [lindex $argv 1] [lindex [get_hw_devices] 0]
10 program_hw_devices [lindex [get_hw_devices] 0]