In reply to chr_sue:
How is this fifo different from regular fifo. I have used .size() to find out the elements left.