外部メモリー・インターフェイス・インテル® Stratix® 10 FPGA IPユーザーガイド

ID 683741
日付 9/30/2019
Public
ドキュメント目次

13.7.1.9. EMIFデバッグ・ツールキットを実行するためのTclスクリプト例

EMIFデバッグ・ツールキットは、必要に応じてTclスクリプトを使用し実行することができます。次のTclスクリプト例は、すべてのデバイスファミリーに適用できます。

次のTclスクリプト例は、ファイルを開き、デバッグ・ツールキットを実行し、生成されるキャリブレーション・レポートをファイルに書き込みます。

スクリプト内の変数は、デザインに合わせて調整する必要があります。その後、コマンド quartus_sh -t example.tclを使用してスクリプトを実行することができます。

# Modify the following variables for your project
set project "ed_synth.qpf"
# Index of the programming cable.  Can be listed using "get_hardware_names"
set hardware_index 1
# Index of the device on the specified cable. Can be listed using "get_device_names"
set device_index 1
# SOF file containing the EMIF to debug
set sof "ed_synth.sof"
# Connection ID of the EMIF debug interface.  Can be listed using "get_connections"
set connection_id 2
# Output file
set report "toolkit.rpt"

# The following code opens a project and writes its calibration reports to a file.
project_open $project
load_package ::quartus::external_memif_toolkit
initialize_connections
set hardware_name [lindex [get_hardware_names] $hardware_index]
set device_name [lindex [get_device_names -hardware_name $hardware_name] $device_index]
link_project_to_device -device_name $device_name -hardware_name $hardware_name -sof_file $sof
establish_connection -id $connection_id
create_connection_report -id $connection_id -report_type summary
create_connection_report -id $connection_id -report_type calib
write_connection_target_report -id $connection_id -file $report