UVM- issue with nested sequence with get config_db

In reply to santhg.90:
seq_wr_rand is getting the proper config_db value
You might be running this(seq_wr_rand) sequence with start method which calls pre_body and pet_body in turn.Thus no issue in uvm_config_db::get

whereas the sequence being called (seq_write) from it is not getting the config_db value and my test fails
The reason is 'uvm_do will not call pre_do and post_do method. Thus your base sequence is not performing the uvm_config_db::get properly.

Why don’t you perform uvm_config_db::get in sequencer and with the help of p_sequencer you can access cfg in any of the sequence.