# uvm_reg_err_service

This class contains virtual functions implementing error messages from uvm_reg. The user may factory-replace this class to produce messages with a different format.

@uvm-accellera The details of this API are specific to the Accellera implementation, and are not being considered for contribution to 1800.2

Contents

uvm_reg_err_service | This class contains virtual functions implementing error messages from uvm_reg.
uvm_reg | This is an implementation of uvm_reg as described in 1800.2 with the addition of API described below.

### Methods

### do_check_error

> virtual function void do_check_error(
> | uvm_reg | this_reg,
> | uvm_reg_data_t | expected,
> | uvm_reg_data_t | actual,
> | uvm_reg_map | map,
> | uvm_reg_data_t | valid_bits_mask
> )

Called when do_check finds a mismatch to create the error message and any other supporting information. Users may customize the look of this error message by overriding this function.

## uvm_reg

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.
Methods |
get_default_map |

### Methods

### 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 map | returns null
Else If the register is associated with only one map | return 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

@uvm-contrib

> class uvm_reg_err_service extends uvm_object

This class contains virtual functions implementing error messages from uvm_reg.

> virtual function uvm_reg_map get_default_map ()