In reply to Vperrin:
virtual function void build_phase(uvm_phase phase);
super.build_phase(phase);
if(!uvm_resource_db#(virtual interface apb_interface)::get("", "apb_tx", vif))
`uvm_fatal(get_type_name(), "Unable to get virtual interface");
endfunction: build_phase