1,建立bat文件,内容如下
call D:\\Xilinx\\Vivado\\2022.2\\.\\bin\\vivado.bat -mode batch -source download.tcl
pause
2,建立tcl文件,名称download.tcl,对应bat文件内容
open_hw_manager
connect_hw_server -allow_non_jtag
open_hw_target
set_property PROGRAM.FILE {sys_wrapper.bit} [lindex [get_hw_devices] 0]
current_hw_device [lindex [get_hw_devices] 0]
refresh_hw_device -quiet [lindex [get_hw_devices] 0]
program_hw_devices [lindex [get_hw_devices] 0]
refresh_hw_device -quiet [lindex [get_hw_devices] 0]
close_hw
3,将bit文件放置同一目录,名称和download.tcl 名称一致,如sys_wrapper.bit
4,双击bat文件,,等待下载完毕。
可以在此基础上进行功能扩展!