uvm_reg

UVMkit » 1800.2-2020

This is an implementation of uvm_reg as described in 1800.2 with the addition of API described below.

Summary
uvm_reg
This is an implementation of uvm_reg as described in 1800.2 with the addition of API described below.
Class Hierarchy
Class Declaration
class uvm_reg extends uvm_object
Initialization
Introspection
get_nameGet the simple name
get_full_nameGet the hierarchical name
get_default_map
get_n_bitsReturns the width, in bits, of this register.
get_n_bytesReturns the width, in bytes, of this register.
get_max_sizeReturns the maximum width, in bits, of all registers.
Access
get_resetGet the specified reset value for this register
set_resetSpecify or modify the reset value for this register
Frontdoor
Backdoor
Coverage
Callbacks

get_name

Get the simple name

Return the simple object name of this register.

get_full_name

virtual function string get_full_name()

Get the hierarchical name

Return the hierarchal name of this register.  The base of the hierarchical name is the root block.

get_default_map

virtual function uvm_reg_map get_default_map ()

Returns default map for the register as follows

If the register is not associated with any mapreturns null
Else If the register is associated with only one mapreturn a handle to that map Else try to find the first default map in its parent blocks and return its handle If there are no default maps in the registers parent blocks return a handle to the first map in its map array

get_n_bits

virtual function int unsigned get_n_bits ()

Returns the width, in bits, of this register.

get_n_bytes

virtual function int unsigned get_n_bytes()

Returns the width, in bytes, of this register.  Rounds up to next whole byte if register is not a multiple of 8.

get_max_size

static function int unsigned get_max_size()

Returns the maximum width, in bits, of all registers.

get_reset

virtual function uvm_reg_data_t get_reset( string  kind  =  "HARD" )

Get the specified reset value for this register

Return the reset value for this register for the specified reset kind.

set_reset

virtual function void set_reset( uvm_reg_data_t  value,   
string  kind  =  "HARD" )

Specify or modify the reset value for this register

Specify or modify the reset value for all the fields in the register corresponding to the cause specified by kind.

virtual class uvm_void
The uvm_void class is the base class for all UVM classes.
virtual class uvm_object extends uvm_void
The uvm_object class is the base class for all UVM data and hierarchical classes.
class uvm_reg extends uvm_object
This is an implementation of uvm_reg as described in 1800.2 with the addition of API described below.
virtual function string get_full_name()
Get the hierarchical name
virtual function uvm_reg_map get_default_map ()
virtual function int unsigned get_n_bits ()
Returns the width, in bits, of this register.
virtual function int unsigned get_n_bytes()
Returns the width, in bytes, of this register.
static function int unsigned get_max_size()
Returns the maximum width, in bits, of all registers.
virtual function uvm_reg_data_t get_reset( string  kind  =  "HARD" )
Get the specified reset value for this register
virtual function void set_reset( uvm_reg_data_t  value,   
string  kind  =  "HARD" )
Specify or modify the reset value for this register