I am trying to randomize the address and create array indexes out of it. The randomized value is getting repeated here. Can I use randc while declaring the variable so that every time I get a unique randomized value?
module std_randomize;
bit [07:0] addr;
bit [12:0] data[bit [12:0]];
initial begin
for(int i=0; i<=200; i++)
begin
std::randomize(addr);
data[addr] = addr;
end
$display("Value of array is %0p \n",data);
end
endmodule