DE0 nano用のシリアルUSBケーブルを買うのが億劫だったので調べていたら
jtagサーバにtelnet接続するソフトウェアを書いている人がいた。
https://github.com/binary-logic/vj-uart
使い方:
1. https://github.com/binary-logic/vj-uartのrtlフォルダに有る.qpfプロジェクトをquartus2で立ち上げる
2. コンパイルしてDE0 NanoにProgramする
3. コマンドプロンプトを開く。あらかじめPATHにquartusのインストールディレクトリを通しておく(binフォルダ)
quartus_stpコマンドでTcl用のシェルを立ち上げる(quartus_shコマンドだとできない)
$ quartus_stp -s
4. sourceコマンドでTclスクリプトを読み込むとJTAGサーバが起動する
(たぶんQuartus2のProgrammerを消しとかないといけないと思う)
$ source vjuart.tcl
5. Tera termから127.0.0.1, telnet, 2023番ポートを指定して接続する
実行結果
C:\Users\shohei\Downloads\vj-uart-master\vj-uart-master\bin λ quartus_stp -s Info: ******************************************************************* Info: Running Quartus II 64-Bit SignalTap II Info: Version 14.0.0 Build 200 06/17/2014 SJ Web Edition Info: Copyright (C) 1991-2014 Altera Corporation. All rights reserved. Info: Your use of Altera Corporation's design tools, logic functions Info: and other software and tools, and its AMPP partner logic Info: functions, and any output files from any of the foregoing Info: (including device programming or simulation files), and any Info: associated documentation or information are expressly subject Info: to the terms and conditions of the Altera Program License Info: Subscription Agreement, the Altera Quartus II License Agreement, Info: the Altera MegaCore Function License Agreement, or other Info: applicable license agreement, including, without limitation, Info: that your use is for the sole purpose of programming logic Info: devices manufactured by Altera and sold by Altera or its Info: authorized distributors. Please refer to the applicable Info: agreement for further details. Info: Processing started: Fri Aug 08 06:31:02 2014 Info: ******************************************************************* Info: The Quartus II Shell supports all TCL commands in addition Info: to Quartus II Tcl commands. All unrecognized commands are Info: assumed to be external and are run using Tcl's "exec" Info: command. Info: - Type "exit" to exit. Info: - Type "help" to view a list of Quartus II Tcl packages. Info: - Type "help <package name>" to view a list of Tcl commands Info: available for the specified Quartus II Tcl package. Info: - Type "help -tcl" to get an overview on Quartus II Tcl usages. Info: ******************************************************************* tcl> ls vjuart.tcl vjuart.tcl~ tcl> source vjuart.tcl Select JTAG chain connected to USB-Blaster [USB-0]. Selected device: @1: EP3C25/EP4CE22 (0x020F30DD). JTAG VComm listening on 127.0.0.1:2323 Connection from 127.0.0.1 Stream byte counters: in: 6, out: 32 Closed connection JTAG VComm listening on 127.0.0.1:2323
Tera term
JTAG VComm on 127.0.0.1:2323
後々使いそうなのでショートカットを作った。
プロパティのターゲットに
C:\altera\14.0\quartus\bin64\quartus_stp.exe -t C:\altera\14.0\vj-uart\bin\vjuart.tcl
を指定すればショートカットのダブルクリックでJTAGサーバが起動する