Configuration Randomization

In reply to chr_sue:

In reply to Vignesh_18:
I do not see your set to the config_db.
Could you please put your code into an example of the edaplayground.com.

In the Test file i have pasted


function void uart_base_test::build_phase(uvm_phase phase);

                env_config=uart_env_config::type_id::create("env_config");

                r_cfg=reg_config::type_id::create("r_cfg");


                if(has_wb_agent)

                        env_config.agt_config=new[no_of_duts];

                config_uart;

                uvm_config_db#(reg_config)::set(this,"*","reg_config",r_cfg);

                uvm_config_db#(uart_env_config)::set(this,"*","uart_env_config",env_config);

                super.build_phase(phase);

        //ENVIRONMENT CREATION//
                envh=uart_env::type_id::create("envh",this);