In reply to hurmath@fldec:
if you will ramdomize the handle name of the class .
example: class fldec;
bit[31:0] A;
bit B;
bit C;
bit shubham;
function fun();
endfunction
initial
begin
fldec fl;
end
initial
begin
fl.randomize();
end
endclass
than you all the properties(variables inside the class) will get randomize.
I got you, but my question is different than what you had explained. Please refer to the previous reply of mine. I have mentioned the eda link help me with that. You can find the same code in the LRM under constraint guards section.
Thanks.