読み出しトランザクションの作成と実行 - 2023.2 日本語

Vivado Design Suite ユーザー ガイド: プログラムおよびデバッグ (UG908)

Document ID
UG908
Release Date
2023-10-19
Version
2023.2 日本語

AXI トランザクションの作成に使用する Tcl コマンドは、create_hw_axi_txn です。このコマンドの使用方法は、Vivado IDE の [Tcl Console] ウィンドウに「help create_hw_axi_txn」と入力すると表示されます。次に、アドレス 0 からの 4 ワードの AXI 読み出しバースト トランザクションを作成する例を示します。

create_hw_axi_txn read_txn [get_hw_axis hw_axi_1] -type READ -address 00000000 -len 4

説明:

  • read_txn: トランザクションのユーザー定義名
  • [get_hw_axis hw_axi_1]: hw_axi_1 オブジェクトを返します。
  • -address 00000000: 開始アドレス
  • -len 4: AXI バースト長を 4 ワードに設定します。

この後、run_hw_axi コマンドを使用して作成したトランザクションを実行します。次にその例を示します。

run_hw_axi [get_hw_axi_txns read_txn]

最後に、読み出されたデータをトランザクションを実行した結果として取得します。report_hw_axi_txn または report_property コマンドのいずれかを使用するとデータを画面に表示でき、get_property コマンドを使用するとその戻り値をほかの箇所で使用できるようになります。

report_hw_axi_txn [get_hw_axi_txns read_txn]
0 00000000 00000000
8 00000000 00000000
report_property [get_hw_axi_txns read_txn]
Property  Type  Read-only Visible Value
CLASS    string true    true   hw_axi_txn
CMD.ADDR  string false   true   00000000
CMD.BURST  enum  false   true   INCR
CMD.CACHE  int   false   true   3
CMD.ID   int   false   true   0
CMD.LEN   int   false   true   4
CMD.SIZE  enum  false   true   32
DATA    string false   true   00000000000000000000000000000000
HW_AXI   string true    true   hw_axi_1
NAME    string true    true   read_txn
TYPE    enum  false   true   READ