uvm_modal_register

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.

Summary
uvm_modal_register
This class is an uvm_register, which also has “modes”.
Class Hierarchy
uvm_register#(T)
uvm_modal_register
Class Declaration
class uvm_modal_register #(
   type T =  int
) extends uvm_register #(T)
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.

add_mode()

virtual function void add_mode(string mode)

Add ‘mode’ to be a legal mode list.

get_modes()

virtual function void get_modes(output uvm_register_modes_t modes)

Return the list of legal modes.

get_mode()

virtual function string get_mode()

Return the current mode.

set_mode()

virtual function void set_mode(string mode)

Set 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.

Summary
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
uvm_modal_register#(T)
uvm_modal_register_derived
Class Declaration
class uvm_modal_register_derived #(
   type T =  int
) extends uvm_modal_register #(T)
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.

set_mode()

function void set_mode(string mode)

Set the mode, but also copy the current value into the new mode register.

add_mode_instance()

virtual function void add_mode_instance(string mode,
uvm_register_base inst)

Calls add_mode() and adds ‘inst’ to the list of register proxies.

class uvm_modal_register #(type T =  int) extends uvm_register #(T)
This class is an uvm_register, which also has “modes”.
virtual function void add_mode(string mode)
Add ‘mode’ to be a legal mode list.
virtual function void get_modes(output uvm_register_modes_t modes)
Return the list of legal modes.
virtual function string get_mode()
Return the current mode.
virtual function void set_mode(string mode)
Set the current mode.
class uvm_modal_register_derived #(type T =  int) extends uvm_modal_register #(T)
This is an uvm_register, which has modes and contains a list of registers which act on behalf of the current mode.
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.