This class is an uvm_register, which also has “modes”. The modes are just a list of strings, and the mode can the changed by calling ‘set_mode()’. The user implements set_mode() with any kind of mode switching implementation necessary.
| uvm_modal_register | |||||||||||||||||
| This class is an uvm_register, which also has “modes”. | |||||||||||||||||
| Class Hierarchy | |||||||||||||||||
| |||||||||||||||||
| Class Declaration | |||||||||||||||||
| |||||||||||||||||
| Methods | |||||||||||||||||
| add_mode() | Add ‘mode’ to be a legal mode list. | ||||||||||||||||
| get_modes() | Return the list of legal modes. | ||||||||||||||||
| get_mode() | Return the current mode. | ||||||||||||||||
| set_mode() | Set the current mode. | ||||||||||||||||
virtual function void get_modes( output uvm_register_modes_t modes )
Return the list of legal modes.
This is an uvm_register, which has modes and contains a list of registers which act on behalf of the current mode.
| uvm_modal_register_derived | |||||||||||||||||
| This is an uvm_register, which has modes and contains a list of registers which act on behalf of the current mode. | |||||||||||||||||
| Class Hierarchy | |||||||||||||||||
| |||||||||||||||||
| Class Declaration | |||||||||||||||||
| |||||||||||||||||
| Methods | |||||||||||||||||
| set_mode() | Set the mode, but also copy the current value into the new mode register. | ||||||||||||||||
| add_mode_instance() | Calls add_mode() and adds ‘inst’ to the list of register proxies. | ||||||||||||||||
function void set_mode( string mode )
Set the mode, but also copy the current value into the new mode register.
virtual function void add_mode_instance( string mode, uvm_register_base inst )
Calls add_mode() and adds ‘inst’ to the list of register proxies.
This class is an uvm_register, which also has “modes”.
class uvm_modal_register #( type T = int ) extends uvm_register #(T)
Add ‘mode’ to be a legal mode list.
virtual function void add_mode( string mode )
Return the list of legal modes.
virtual function void get_modes( output uvm_register_modes_t modes )
Return the current mode.
virtual function string get_mode()
Set the current mode.
virtual function void set_mode( string mode )
This is an uvm_register, which has modes and contains a list of registers which act on behalf of the current mode.
class uvm_modal_register_derived #( type T = int ) extends uvm_modal_register #(T)
Set the mode, but also copy the current value into the new mode register.
function void set_mode( string mode )
Calls add_mode() and adds ‘inst’ to the list of register proxies.
virtual function void add_mode_instance( string mode, uvm_register_base inst )