访问枚举 - 2023.2 简体中文

Vivado Design Suite 用户指南: 编程和调试 (UG908)

Document ID
UG908
Release Date
2023-10-19
Version
2023.2 简体中文

枚举作为 hw_probe 属性来存储,因此可在这些属性上使用 set_propertyget_propertyreport_property 命令。

枚举属性带有 ENUM 前缀,将枚举与 set_propertyget_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]]