Tutorials

Learn More

The UVM RAL model defines certain types, enum, and defines globally.

RAL Model Defines

Defines

Description

`UVM_REG_ADDR_WIDTH

Maximum address width (in bits)

Default value = 64

Used to define the uvm_reg_addr_t type

`UVM_REG_DATA_WIDTH

Maximum data width (in bits)

Default value = 64

Used to define the uvm_reg_data_t type

`UVM_REG_BYTENABLE_WIDTH

The maximum number of byte enable bits

Default value = one per byte in `UVM_REG_DATA_WIDTH

Used to define the uvm_reg_byte_en_t type

`UVM_REG_CVR_WIDTH

The maximum number of bits in a uvm_reg_cvr_t coverage model set.

Default value = 32

RAL Model Types

Types

Description

uvm_reg_addr_t

2-state address value with `UVM_REG_ADDR_WIDTH bits

uvm_reg_addr_logic_t

4-state address value with `UVM_REG_ADDR_WIDTH bits

uvm_reg_data_t

2-state data value with `UVM_REG_DATA_WIDTH bits uvm_reg_data_logic_t

uvm_reg_data_logic_t

4-state data value with `UVM_REG_DATA_WIDTH bits

uvm_reg_byte_en_t

2-state byte_enable value with `UVM_REG_BYTENABLE_WIDTH bits

uvm_reg_cvr_t

Coverage model value set with `UVM_REG_CVR_WIDTH bits.

uvm_hdl_path_slice

Slice of an HDL path

RAL Model Enumerations

Enumerations

Description

uvm_status_e

Return status for register operations


UVM_IS_OK

The operation completed successfully

UVM_NOT_OK

The operation completed with an error

UVM_HAS_X

The operation completed successfully bit had unknown bits.

.

uvm_path_e

Path used for register operation


UVM_FRONTDOOR

Use the front door

UVM_BACKDOOR

Use the back door

UVM_PREDICT

The operation is derived from observations by a bus monitor via the uvm_reg_predictor class.

UVM_DEFAULT_PATH

The operation specified by the context

uvm_check_e

Read-only or read-and-check


UVM_NO_CHECK

Read-only

UVM_CHECK

Read and check

uvm_access_e

Type of operation begin performed


UVM_READ

Read operation

UVM_WRITE

Write operation

uvm_predict_e

How the mirror is to be updated


UVM_PREDICT_DIRECT

The predicted value is as-is

UVM_PREDICT_READ

Predict based on the specified value having been read

UVM_PREDICT_WRITE

Predict based on the specified value having been written

Note: Please refer to the UVM class reference manual to see all enumerations in the UVM RAL model.