How do you use the UVM flush method in a UVM scoreboard?

Can any one knows how to use uvm flush method in uvm scoreboard. I want to reset my TLM analysis fifo before another frame start.I tried fifo.flush and fifo=flush but both sawing error.I don’t know correct way to use flush method in scoreboard.Can any one guide me.

In reply to NISHANG R KHAMAR:

the flush method is defined for uvm_tlm_fifo. Calling flush on such fifo removes all entries from the fifo.
You can use this like this:
your_tlm_fifo.flush

But there is alo e flush method defined on the uvm_in_order_comparator. This flush method resets the match and mismatch counts.

Hi ,

The flush method is in uvm_in_order_comparator . So i should get that in my scoreboard which extends from UVM_COMPONENT .How do i get that defined method which is in uvm_in_order_comparartor …?

In reply to NISHANG R KHAMAR:

If you are etending your sb from uvm_component, then you do not have the uvm_flush m ethod available, but you can easily reset the numbers of the matche/mismatches on your own.