M
Melvin
Guest
Hi,
I wanted to try randomization using System Verilog.
I did the following:
class rand_class_ins
rand bit direction;
endclass
rand_class_ins rand_class
rand_class = new;
task some_super_class
rand_class.randomize();
$display("%d",direction");
endtask
However the above task irrespective of how much ever times I call it
returns direction as the same value.
I also checked if randomization is taking place properly by
rand_class.randomize() function which is returning one.
Thanks
Verilog baby
I wanted to try randomization using System Verilog.
I did the following:
class rand_class_ins
rand bit direction;
endclass
rand_class_ins rand_class
rand_class = new;
task some_super_class
rand_class.randomize();
$display("%d",direction");
endtask
However the above task irrespective of how much ever times I call it
returns direction as the same value.
I also checked if randomization is taking place properly by
rand_class.randomize() function which is returning one.
Thanks
Verilog baby