Configuration Randomization

In reply to chr_sue:

In reply to Vignesh_18:
You don’t get the cfg object in your sequence and your check is wrong:

 if(uvm_config_db#(reg_config)::get(null,"","reg_config",r_cfg))
`uvm_fatal("R_CFG","Failed to get()")

Please note the sequence does not belong to the hierarchy of the UVM testbench.
Please use

 if(!uvm_config_db#(reg_config)::get(get_sequencer(),"","reg_config",r_cfg))
`uvm_fatal("R_CFG","Failed to get()")

Thank you Sir!!