Hi,
I want to know how I can initialize my queue with the $urandom_range method…
Like if I declare a bounded queue and I want to initialize this with $urandom_range Like-
module queue;
int q[$:5];
initial begin
q={$urandom_range(1,100)};
$display("size of q is %0d",q.size());
$display("elements if queue=%p",q);
end
endmodule
Then i am getting output:
KERNEL: size of q is 1
KERNEL: elements if queue='{15}
But I declared my queue for 6 elements and in the output, I am getting only one element.
Please reply asap.
Thanks in advance.