Systemverilog Packed-Unpacked Array

Un-Packed and Packed arrays will be saved as below,

 Un-Packed array 

Ex:  bit [7:0] array4[2:0];   

7
6
5
4
3
2
1
0
array4[0]
7
6
5
4
3
2
1
0
array4[1]
7
6
5
4
3
2
1
0
array4[2]




 Packed array 

         Refer to the dimensions declared before the object name.
         Ex:  bit [2:0] [7:0] array5;   

7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
array5[2]
array5[1]
array5[0]