在UVM e Reference
文件中写道:
You can call read_reg_field or write_reg_field for registers whose fields
are defined as single_field_access (see “vr_ad_port_unit Syntax and Examples”).
...
For example:
write_reg_fields tx_mode_reg {.resv = 4; .dest = 2};
但是没有使用read_reg_field的例子......你能解释一下它应该如何使用吗?
(我尝试了下一个代码,但它给出了编译错误
some_var = read_reg_field my_reg_file.my_reg {.my_reg_field}
:)谢谢你的帮助。