How to declare queue fo queue, each queue is struct element

Hi sir,

Looking for help with SV for Queue of Queue syntax, the below code is giving compile err. any help from anyone sir ?

 typedef struct {
    int      num; 
    string  flag;
     bit     pass;
  } gen_pk;

  gen_pk gen_pkQueue[$];//Queue of struct elements

gen_pkQueue gen_pkBigQueue[]; Queue of struct elements PUSHED into a big Queue // ----> this is not working sir ("Syntactically this identifier appears to begin a datatype but it does not refer to a visible datatype in the current scope") typedef gen_pkQueue gen_pkBigQueue[]; ----> this is not working sir (“Syntactically this identifier appears to begin a datatype but it does not refer to a visible datatype in the current scope”)

Basically I want to push gen_pkQueue[] into gen_pkBigQueue[], that above code giving compile error. so any suggestion what would be the reason ?

regards,
Anees chand

In reply to aneesh2010:

I think you want

gen_pk gen_pkQueue[$]; // Queue of struct elements
gen_pk gen_pkBigQueue[$][$];    // Queue of Queue of struct elements

or

typedef gen_pk gen_pk_Q_t[$];
gen_pk_Q_t gen_pkQueue;         // Queue of struct elements
gen_pk_Q_t gen_pkBigQueue[$];   // Queue of Queue of struct elements