reg2apb_adapter

class reg2apb_adapter extends uvm_reg_adapter

Implements the translation between apb_seq_item and uvm_reg_bus_op.

The mapping is one-to-one due to similarities between UVM RAL and APB.

Summary
reg2apb_adapterImplements the translation between apb_seq_item and uvm_reg_bus_op.
Functions
newConventional UVM object constructor.
reg2busConverts a generic, RAL transaction type into an APB bus transaction type.
bus2regConverts an APB bus transaction type into a generic, RAL transaction type.

Functions

new

function new(string name =  "reg2apb_adapter")

Conventional UVM object constructor.

reg2bus

virtual function uvm_sequence_item reg2bus(const ref uvm_reg_bus_op rw)

Converts a generic, RAL transaction type into an APB bus transaction type.

This mapping is one to one.

bus2reg

virtual function void bus2reg(uvm_sequence_item bus_item,
ref uvm_reg_bus_op rw)

Converts an APB bus transaction type into a generic, RAL transaction type.

The mapping is mostly one to one.  For simplicity all transactions is flagged as successful (i.e. status UVM_IS_OK).

class reg2apb_adapter extends uvm_reg_adapter
Implements the translation between apb_seq_item and uvm_reg_bus_op.
function new(string name =  "reg2apb_adapter")
Conventional UVM object constructor.
virtual function uvm_sequence_item reg2bus(const ref uvm_reg_bus_op rw)
Converts a generic, RAL transaction type into an APB bus transaction type.
virtual function void bus2reg(uvm_sequence_item bus_item,
ref uvm_reg_bus_op rw)
Converts an APB bus transaction type into a generic, RAL transaction type.