首页 / AMD-FPGA / 帖子

如何用tcl命令给altera FPGA下载程序?

作者 ★繁星☆ 2019-08-07 13411 次浏览 2 条回复 论坛存档
★
★繁星☆
2019-08-07
楼主

实现自动化,用脚本调用JTAG给FPGA下载程序,有做过的朋友吗?谢谢

uisrc
uisrc
2019-08-07
#1

我们这里使用XILINX FPGA 对于ALTERA FPGA还真不熟悉

y
yticds
2019-09-07
#2

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]

这是论坛时期的原帖存档,只读。新的讨论请到 提问, 沉淀下来的内容会进 知识库 和 方案库。