In reply to sharvil111:
In reply to Er. Shipra:
Showing some code might be helpful. Can you use mailbox communication between the two? Or any port connection for OVM/UVM based TB.
Declare your mailbox of appropriate type in environment and pass its handle in both master and slave agents. Master may use blocking put or non-blocking try_put to keep the data into mailbox and slave might have get/try_get depending on the use case.
code is somewhat like:-
in master driver config:-
if(cfg.master_slave_select == AXI_MASTER)
for(int i=2;i<=rd_burst_length;i++ )
in slave driver:-
if(cfg.master_slave_select == AXI_SLAVE)
$display("\tQueue_1 size in read data is %0d",RADDR_Q.size());
visibility is set.uvm_config_db#(axi_agent_configuration)::set(this,"axi_env.m_agnt.*","axi_agent_configuration",m_cfg);