Packed and Unpacked Array

Packed Array :

Packed Array used to refer to dimensions declared before the Array/Variable name.

Examples :

bit [2:0] addr; //Single dimensional packed array

bit [1:0][3:0] data; //Two dimensional packed array

UnPacked Array :

UnPacked Array used to refer to dimensions declared after the Array/Variable name.

Examples :

bit addr[2:0]; //Single dimensional Unpacked array

bit data [1:0][3:0]; //Two dimensional Unpacked array