When does the reg2bus and bus2reg are called in UVM register test?

Hello,

If ‘provide_responses’ is 1, bus2reg would be called after getting response else bus2reg would be called as soon as finish_item is done.

See below snippet from UVM src code.


      if (adapter.provides_responses) begin
        uvm_sequence_item bus_rsp;
        uvm_access_e op;
        // TODO: need to test for right trans type, if not put back in q
        rw.parent.get_base_response(bus_rsp);
        adapter.bus2reg(bus_rsp,rw_access);
      end
      else begin
        adapter.bus2reg(bus_req,rw_access);
      end

Regards,
Vinay Jain