实现自动化,用脚本调用JTAG给FPGA下载程序,有做过的朋友吗?谢谢
首页 / AMD-FPGA / 帖子
如何用tcl命令给altera FPGA下载程序?
我们这里使用XILINX FPGA 对于ALTERA FPGA还真不熟悉
VIVADO TCL 脚本如下:
open_hw
connect_hw_server -url localhost:3121
current_hw_target [get_hw_targets */xilinx_tcf/Xilinx/00000000000000]
set_property PARAM.FREQUENCY 6000000 [get_hw_targets */xilinx_tcf/Xilinx/00000000000000]
open_hw_target
set_property PROGRAM.FILE { } [lindex [get_hw_devices] 0]
current_hw_device [lindex [get_hw_devices] 0]
refresh_hw_device -update_hw_probes false [lindex [get_hw_devices] 0]
set_property PROGRAM.FILE {top.bit} [lindex [get_hw_devices] 0]
set_property PROBES.FILE {debug_nets.ltx} [lindex [get_hw_devices] 0]
program_hw_devices [lindex [get_hw_devices] 0]
refresh_hw_device [lindex [get_hw_devices] 0]
display_hw_ila_data
set_property CONTROL.TRIGGER_POSITION 100 [get_hw_ilas hw_ila_1]
run_hw_ila hw_ila_1
wait_on_hw_ila hw_ila_1
display_hw_ila_data [upload_hw_ila_data hw_ila_1]