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()")

After Doing subsequent changes into sequence file, I am getting fatal error…

UVM_FATAL …/wb_agt/uart_seqs.sv(33) @ 0: uvm_test_top.envh.agt_top.uart_agt[0].sqrh@@s1 [R_CFG] Failed to get()