SVF ファイルの生成 - 2022.1 日本語

Vitis 統合ソフトウェア プラットフォームの資料: エンベデッド ソフトウェア開発 (UG1400)

Document ID
UG1400
Release Date
2022-04-26
Version
2022.1 日本語

SVF (Serial Vector Format) は業界標準のファイル形式で、JTAG チェーンの操作をコンパクトでポータブルな方法で記述するために使用されます。次は、SVF ファイルを生成する XSCT スクリプトの例です。

# Reset values of respective cores
set core 0
set apu_reset_a53 {0x380e 0x340d 0x2c0b 0x1c07}
# Generate SVF file for linking DAP to the JTAG chain
# Next 2 steps are required only for Rev2.0 silicon and above.
svf config -scan-chain {0x14738093 12 0x5ba00477 4
} -device-index 1 -linkdap -out "dapcon.svf"
svf generate
# Configure the SVF generation
svf config -scan-chain {0x14738093 12 0x5ba00477 4
} -device-index 1 -cpu-index $core -delay 10 -out "fsbl_hello.svf"
# Record writing of bootloop and release of A53 core from reset
svf mwr 0xffff0000 0x14000000
svf mwr 0xfd1a0104 [lindex $apu_reset_a53 $core]
# Record stopping the core
svf stop
# Record downloading FSBL
svf dow "fsbl.elf"
# Record executing FSBL
svf con
svf delay 100000
# Record some delay and then stopping the core
svf stop
# Record downloading the application
svf dow "hello.elf"
# Record executing application
svf con
# Generate SVF
svf generate
注記: SVF ファイルは、XSCT を使用してのみ記録できます。SVF ファイルの再生には、どの標準 SVF プレイヤーでも使用できます。

SVF ファイルを Vivado ハードウェア マネージャーで再生するには、ターゲットに接続してから、次の Tcl コマンドを使用して選択したターゲットでファイルを再生します。

execute_hw_svf <*.svf file>