tdaq-develop-2025-02-12
program_both_DTCs.tcl
1 puts "JTAG-0 bitfile to program: [lindex $argv 0]"
2 puts "JTAG-1 bitfile to program: [lindex $argv 1]"
3 
4 open_hw_manager
5 connect_hw_server
6 refresh_hw_server
7 
8 open_hw_target [lindex [get_hw_targets *] 0]
9 set_property PROGRAM.FILE [lindex $argv 0] [lindex [get_hw_devices] 0]
10 program_hw_devices [lindex [get_hw_devices] 0]
11 close_hw_target
12 
13 open_hw_target [lindex [get_hw_targets *] 1]
14 set_property PROGRAM.FILE [lindex $argv 1] [lindex [get_hw_devices] 0]
15 program_hw_devices [lindex [get_hw_devices] 0]
16 close_hw_target
17 
18 disconnect_hw_server
19 close_hw_manager