Hi,
I a bit confused on the purpose of .used() method in uvm tlm analysis fifo. What is the difference between .size() and .used(). When to use what? I am using the .size() to find the number of elements left in the queue. Is this correct?
Any help would be greatly appreciated.
Thanks, Madhu
In reply to mseyunni:
No this is not correct. size() returns you the size of the tlm_analysis_fifo used() returns you the number of data entries you have in this fifo.
In reply to chr_sue:
How is this fifo different from regular fifo. I have used .size() to find out the elements left.
This is not correct. the uvm_tlm_fifo has also the function size(), which returns the capacity of the fifo and and not how many places are used.