In reply to 8Blades:
If a variable ‘a’ is ‘randc’, it will be solved before ‘rand’ variables.
Also, second approach:
class my_class;
rand bit [7:0] a;
endclass
class seq_item extended from class umv_sequence_item;
bit [7:0] a; // not random
my_class my_class_h;
rand bit [7:0] b,c,d ,e ...... ,x,y,z; // 'a' is removed
/* constraint prob{ solve a before b;
solve a before c;
solve a before d;
.....
.....
solve a before z;
}
*/
function void pre_randomize();
my_class_h = new(); my_class_h.randomize();
a = my_class_h.a;
endfunction: pre_randomize
endclass