shaiko
Advanced Member level 5
- Joined
- Aug 20, 2011
- Messages
- 2,644
- Helped
- 303
- Reputation
- 608
- Reaction score
- 297
- Trophy points
- 1,363
- Activity points
- 18,302
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