This section defines the virtual field and callback classes.
A virtual field is set of contiguous bits in one or more memory locations. The semantics and layout of virtual fields comes from an agreement between the software and the hardware, not any physical structures in the DUT.
Virtual Register Field Classes | This section defines the virtual field and callback classes. |
uvm_vreg_field | Virtual field abstraction class |
uvm_vreg_field_cbs | Pre/post read/write callback facade class |
Virtual field abstraction class
A virtual field represents a set of adjacent bits that are logically implemented in consecutive memory locations.
uvm_vreg_field | ||||
Virtual field abstraction class | ||||
Class Hierarchy | ||||
| ||||
Class Declaration | ||||
| ||||
initialization | ||||
Introspection | ||||
get_name | Get the simple name | |||
get_full_name | Get the hierarchical name | |||
get_lsb_pos_in_register | Return the position of the virtual field / Returns the index of the least significant bit of the virtual field in the virtual register that instantiates it. | |||
get_n_bits | Returns the width, in bits, of the virtual field. | |||
HDL Access | ||||
Callbacks |
Get the simple name
Return the simple object name of this virtual field
virtual function string get_full_name()
Get the hierarchical name
Return the hierarchal name of this virtual field The base of the hierarchical name is the root block.
virtual function int unsigned get_lsb_pos_in_register()
Return the position of the virtual field / Returns the index of the least significant bit of the virtual field in the virtual register that instantiates it. An offset of 0 indicates a field that is aligned with the least-significant bit of the register.
virtual function int unsigned get_n_bits()
Returns the width, in bits, of the virtual field.
Pre/post read/write callback facade class
uvm_vreg_field_cbs | |||||
Pre/post read/write callback facade class | |||||
Class Hierarchy | |||||
| |||||
Class Declaration | |||||
| |||||
Types | |||||
uvm_vreg_field_cb | Convenience callback type declaration | ||||
uvm_vreg_field_cb_iter | Convenience callback iterator type declaration |
Convenience callback type declaration
Use this declaration to register virtual field callbacks rather than the more verbose parameterized class
Convenience callback iterator type declaration
Use this declaration to iterate over registered virtual field callbacks rather than the more verbose parameterized class
Virtual field abstraction class
class uvm_vreg_field extends uvm_object
Pre/post read/write callback facade class
virtual class uvm_vreg_field_cbs extends uvm_callback
The uvm_void class is the base class for all UVM classes.
virtual class uvm_void
The uvm_object class is the base class for all UVM data and hierarchical classes.
virtual class uvm_object extends uvm_void
Get the hierarchical name
virtual function string get_full_name()
Return the position of the virtual field / Returns the index of the least significant bit of the virtual field in the virtual register that instantiates it.
virtual function int unsigned get_lsb_pos_in_register()
Returns the width, in bits, of the virtual field.
virtual function int unsigned get_n_bits()
The uvm_callback class is the base class for user-defined callback classes.
class uvm_callback extends uvm_object