Typedef and Associative array in System Verilog

Untitled design 18

An associative array is one of the aggregate data types available in the system Verilog. … When the size of the collection is unknown or the data space is sparse, an associative array is used, which does not have any storage allocated until it is used. That means, it is dynamically allocated but has non-contiguous elements.