int c[][$][int];
I am trying to understand memories in depth. I was just wondering whether a 3D dynamic array with queue and associative array is possible or not?
I am able to make 2D dynamic array with queue like this:
int a[][$];
and it's working. I am able to write data in each location and retrieve as well.
I am stuck with int c[][$][$] and int c[][$][int].
I used this logic for 2D dynamic array with queue.
initial
a=new[4];
foreach(a[i])
begin
a[i].push_front(i*2);
a[i].push_front(i*3);
a[i].push_front(i*4);
end
$display("arr %0p size=%0d",a,$size(a));
foreach(a[i])
for(int j=0; j<3;j++)
begin
b[l] =a[i].pop_front();
l++;
end
$display("%0p",b);
end
For 3D, I was trying this:
initial
begin
c=new[4];
foreach(c[i])
a[i].push_front(i*2);
$display("%0p",c);
end