Static Array

Static array is referred as fixed size array as size will be constant throughout the simulation, Once the array is declared no need to create it.

bit [2:0] addr; //Fixed Size array

Here, the width of the addr cannot be changed after the declaration.

Static Array further classified into two types as below,

  1. Packed Array
  2. Unpacked Array