列挙名へのアクセス - 2022.1 日本語

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

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

列挙名は hw_probe プロパティとして保存されるので、set_propertyget_property、および report_property コマンドを使用してアクセスできます。

列挙プロパティには接頭辞 ENUM が付いており、set_property および get_property コマンドを使用するときに必要です。次に例を示します。

get_property ENUM.FIFTEEN  -of_objects [get_hw_ilas -of_objects [get_hw_devices 
xc7k325t_0] -filter {CELL_NAME=~"i_fast_ila"}]]
eq5'u15
report_property [get_hw_probes fast_vio_slice5_fb -of_objects [get_hw_ilas 
hw_ila_1]] ENUM*
Property      Type  Read-only Visible Value
ENUM.FIFTEEN    string true    true   eq5'u15
ENUM.FOURTEEN    string true    true   eq5'u14
ENUM.SEVENTEEN   string true    true   eq5'u17
ENUM.SIXTEEN    string true    true   eq5'u16
ENUM.THIRTEEN    string true    true   eq5'u13
ENUM.TWELVE     string true    true   eq5'u12
ENUM.ZERO      string true    true   eq5'h00
set_property ENUM.FIFTEEN eq5'h0F [get_hw_probes fast_vio_slice5_fb -of_objects 
[get_hw_ilas hw_ila_1]]