shaiko
Advanced Member level 5
Hello,
I have a 3d array defined as :
I want to write a "foreach" loop that iterates over all dimensions.
Is this the correct syntax ?
I have a 3d array defined as :
Code:
logic [1:0] [2:0] [3:0] some_3d_array ;
Is this the correct syntax ?
Code:
foreach (some_3d_array[i])
begin
foreach (some_3d_array[i][j])
begin
foreach (some_3d_array[i][j][k])
begin
// do something
end
end
end