Hi,
I've implemented the following code;
class monitor extends ovm_monitor;
ovm_analysis_port #(transaction) tx_data;
......
function void build();
tx_data = new("tx_data",this);
endfunction
endclass
class agent extends ovm_agent;
monitor tx_monitor;
ovm_analysis_port #(transaction) data_out_tx;
.......
function void build();
tx_monitor = monitor::type_id::create::("tx_monitor",this);
data_out_tx = new("data_out_tx",this);
endfunction
function void connect();
tx_monitor.tx_data.connect(this.data_out_tx);
endfunction
endclass
While compiling the above setup; I got ERROR:"NULL pointer dereference" pointing the connect method inside the agent class.
Can anyone help me to overcome the above issue?