In reply to dave_59:
Thanks for the clarity Dave :)
But if I need to know the seed for each and every variable I am randomizing, is that possible to obtain? I tried it and is throwing error.
I mean, consider this code
module test;
class sample;
rand int unsigned a,b;
endclass
sample obj1,obj2;
initial begin
obj1 = new();
$display(“Initial seed = %x”,obj1.get_randstate());
repeat(5) begin
obj1.randomize();
$display(“a=%d, b=%d, seed=%x”,obj1.a,obj1.b,obj1.get_randstate()); end
end
endmodule
How can I get the randstate for a & b separately?