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