module element;
class abc;
randc bit[7:0] a[$:7];
endclass
initial begin
abc b = new();
for(int i = 0; i<8; i++)
begin
if(!b.randomize()) $display("error");
else $display ("Success");
$display("a[%0d] = %0d", i, b.a[i]);
end
end
endmodule
I have 1 query about FIFO.
Let say I have defined FIFO as [65:0] reg [1023:0], so what I am doing taking 5 data of 66 bit each per clock from 5 signals of the interface so 5 location will be filled. so now let’s say per clock I want to delete particular data and if in same clock data is been deleted then it should not delete other data for the same clock even though same data detected.