In reply to mayurkubavat:
Actually I have already tried this . But its showing an error as below:
Error-[DTINPCIL] Dynamic type in non-procedural context
testbench.sv, 7
“$monitor(“Value is %p”, my_queue);”
Argument: my_queue
Queue may not be used in non-procedural context.
I am also mentioning the the link of edaplayground where i have tied to simulate: