Large size Array in C Model

Hi,

I am Using C model in my UVM environment.While in C model I have used one multidimensional Array.Please Refer Following Code:

In C File:

char Memory_array[2][2][4096][256][16384];

It gives Simulation Fatal Error due to large size of Array.
How to solve this problem?

Thanks In Advance.

You are trying to allocate 36GB of memory in your ā€œCā€ model. You are obviously exceeding the
process limits on your machine.

Have you considered using an associative array (or a hash table) where you store index and value for each entry. These are very efficient data structures for sparse memory representations.