In reply to aalpa23:
Do you really need to make this random?
How about
class c_cfg extends uvm_object;
bit c_bit = 0;
...
class a_cfg extends b_cfg;
function new(string name);
super.new(name);
c_cfg.c_bit = 1;
...
In reply to aalpa23:
Do you really need to make this random?
How about
class c_cfg extends uvm_object;
bit c_bit = 0;
...
class a_cfg extends b_cfg;
function new(string name);
super.new(name);
c_cfg.c_bit = 1;
...