Hi Forum,
I have a 2D Unpacked array axi_transaction assoc_q [int][$]; which is iterated in descending order ( based on precedence )
Using array location methods I find the object of interest. Once found I want to delete it
Here is my attempt. During 1st iteration of for loop, there are 2 elements returned via find API.
During 2nd and 3rd iteration, find API returns 1 element. My understanding was that returned element would be pointing to same object so if I were to assign the queue element as null,I would end up removing the respective element from original array assoc_q.
However, the elements still exist within assoc_q
(1) Seeking suggestions to delete the elements returned via find from assoc_q
(2) Using foreach( assoc_q[i,j] ) 1st index āiā iterates through associative array and 2nd index ājā iterates through queue.
So, should I call assoc_q as Queue of Associative array or Associative array of queue ?
Thanks