Uvm_tlm_analysis_fifo size limit

Hello,

I wanted to know whether uvm_tlm_analysis_fifo has a bounded size.
I am using it as part of my checker and I have quite heavy write cmds before starting to “get” the items from it.

when I am trying to search an item (which I know was written by prints in log) I am unable to track it.

I would appreciate your help

thanks,
Guy

In reply to guy.levi:

“An analysis_fifo is a uvm_tlm_fifo with an unbounded size and a write interface.”

In reply to guy.levi:

**uvm_tlm_analysis_fifo#(T):
An analysis_fifo is a uvm_tlm_fifo#(T) with an unbounded size and a write interface.
**

You may want to use the following analysis_fifo methods to check/debug the FIFO status.

**virtual function int size()
**Returns the capacity of the FIFO-- that is, the number of entries the FIFO is capable of
holding. A return value of 0 indicates the FIFO capacity has no limit.

virtual function int used()
Returns the number of entries put into the FIFO.

**virtual function bit is_empty()
**Returns 1 when there are no entries in the FIFO, 0 otherwise.

**virtual function bit is_full()
**Returns 1 when the number of entries in the FIFO is equal to its size, 0 otherwise.

In reply to Lina.Lin:

Dave and Lina,
thanks for the information!

Guy