Hi All,
I have a config class…
class config extends uvm_object;
rand int rate;
endclass
class my_test extends uvm_test;
config cfg;
cfg=new();
constraint bit_rate_1{cfg.rate==1;} //This constraint is not working …
assert(cfg.randomize()); //doing it in build phase
endclass