全文連結:http://www.61eda.com/Services/peixun/IC/200912/2232.html
昨天遇到的Visual Jtag調試GUI介面化的問題終於解決了,riple的方向是正確的,tcl script開始要加init_tk,結束要加退出前等待,但是對於該等待命令我從Altera的AE得到了一個跟riple不同的命令,即tkwait,不管了只要能達到目的就行。
總結一下詳細操作步驟(下面是給AE的SR總結的步驟):
1), Add the "init_tk" in the vjgui.tcl file;
2), I added the " tkwait window .top" at the end of vjgui.tcl file;
3), I created a BAT file named vj_gui.bat, which include these two command "quartus_stp -t vjgui.tcl" and "quartus_stp -s" ;
4), I excuted vj_gui.bat
5)、Enjoy your debugging,哈哈。
:
唯一遺憾的是QuartusII不支援中文,所以GUI無法漢化,目前流行的TCL解析工具都支援中文,不象以前還需要專門的漢化工具。
PS:附上Altera AE提供一個超級簡單的例子
# Initialize the Tk library
init_tk
# Create a top level and add a title
toplevel .top
wm title .top "Hello World"
# Add widgets
button .top.hello -text Hello -command {puts stdout "Hello, World!"}
pack .top.hello -padx 20 -pady 10
# Without "tkwait", the script finishes at this point and the
# window is destroyed. The "tkwait" command prevents the
# script from finishing until the you close the window.
tkwait window .top