How to use queues of associative arrays?

Hi guys,

I want create a hash table, use bit[9:0] as index to find value ( bit [59:0] queue ). So I think maybe I can use a queues of associative arrays. But unfortunately, I don`t know how to use it.

I tried like this:
bit [59:0][$] hash_q[bit[9:0]];

hash_q[idx].push_back(data);

Then I get errors,Error-[IBC] Invalid bounds count, Error-[XMRE] Cross-module reference resolution error.

Anyone can help me to solve this, thank you. For SV, is it a correct way to deal with this?

In reply to xujiaan:

From your description, it looks like you want an associative array of queues, with the queue element being a 60-bit value. If that is the case, the declaration would look like

bit [59:0] hash_q[bit[9:0]][$];

Note that the packed array dimension is to the left of hash_q, and the unpacked dimensions are to the right side.