HI,
I am new to system verilog and was trying to simulate the following simple program but am not able to understand how the output is beign generated:
Code Verilog - [expand]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module test ();initialbeginbyte XYZ[4][7];foreach(XYZ[i,j])
XYZ[i][j]=i*100+j;foreach(XYZ[i])begin$write("%d:",i);foreach(XYZ[,j])$write("%3d",XYZ[i][j]);//$displayendendendmodule
the result that it is generating is
0: 0 1 2 3 4 5 6 1:100101102103104105106 2:-56-55-54-53-52-51-50 3: 44 45 46 47 48 49 50
I am able to understand logic behind 0: 0 1 2 3 4 5 6 1:100101102103104105106 but how 2:-56-55-54-53-52-51-50 3: 44 45 46 47 48 49 50 is coming could someone please explain??