uvm_reg.svh

UVMkit » 1800.2-2017
Summary
uvm_reg.svh
Initialization
Introspection
get_nameGet the simple name
get_full_nameGet the hierarchical name
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_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 function string get_full_name()
Get the hierarchical name
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