I created a queue in my Env class. I want to pass the queue by reference to other objects I create in my Env class so that each object is referring to the same queue. However, it seems that my queue is simply copied from the Env object to the other objects i.e., I can pop elements from the queue in one object, but they still remain on the the queue in other objects. The "ref" I've used in front of the queue argument in my function seems to have no effect... thoughts?
Thanks,
-Greg
------
bit [ 6:0 ] my_Q[ $ ]
function new( ..., ref bit [ 6:0 ] myQ[ $ ], ... );
my_Q = myQ;
endfunction