[X]关闭

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

文档创建者:★繁星☆
浏览次数:4519
最后更新:2019-09-07
实现自动化,用脚本调用JTAG给FPGA下载程序,有做过的朋友吗?谢谢

发表评论已发布 2

uisrc

发表于 2019-8-7 20:35:10 | 显示全部楼层

我们这里使用XILINX FPGA 对于ALTERA FPGA还真不熟悉
越努力越幸运!加油!

yticds

发表于 2019-9-7 10:02:51 | 显示全部楼层

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]
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则