In reply to saurabh_3:
yes,i created driver and sequencer in the agent only,
still getting that fatal error.
function void build_phase(uvm_phase phase);
super.build();
if(is_active == UVM_ACTIVE)begin
sequencer = ac_lpc_sequencer::type_id::create(“sequencer”,this);
driver = ac_lpc_driver::type_id::create(“driver”,this);
end
else begin
monitor = ac_lpc_monitor::type_id::create(“monitor”,this);
end
endfunction
function void connect_phase(uvm_phase phase);
if(is_active == UVM_ACTIVE)begin
(164) driver.seq_item_port1.connect(sequencer.seq_item_export);
end
Fatal Error: RUNTIME_0029 testbench.sv (164): Null pointer access.