# Duplicate items in uvm\_tlm\_analysis\_fifo used in scoreboard

**URL:** <https://verificationacademy.com/forums/t/duplicate-items-in-uvm-tlm-analysis-fifo-used-in-scoreboard/34501>\
**Category:** UVM\
**Tags:** UVM, scoreboard, uvm\_tlm\_analysis\_fifo\
**Created:** [May 25, 2018, 4:59pm UTC](https://verificationacademy.com/forums/t/duplicate-items-in-uvm-tlm-analysis-fifo-used-in-scoreboard/34501 "2018-05-25T16:59:14Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [May 26, 2018, 7:55pm UTC](https://verificationacademy.com/forums/t/duplicate-items-in-uvm-tlm-analysis-fifo-used-in-scoreboard/34501/7 "2018-05-26T19:55:08Z")

</div>

_In reply to [bmaassar](https://verificationacademy.com/forums/t/duplicate-items-in-uvm-tlm-analysis-fifo-used-in-scoreboard/34501/6):_

> _In reply to [chr\_sue](https://verificationacademy.com/forums/t/duplicate-items-in-uvm-tlm-analysis-fifo-used-in-scoreboard/34501/6):_  
> Yes, so out\_pkts come from an agent.monitor.port. I connected this agent.monitor.port to file log subscribers and the outputs to the files look correct. Then, there’s no problem with the port.  
> Each agent.monitor.port is connected to the analysis\_export of a subscriber (part of the scoreboard) extended from the uvm\_subscriber class. I added prints for every write that is being done and I don’t see duplicates. Then, there shouldn’t be a problem with the subscriber.  
> The uvm\_analysis\_port of the subscriber is connected to the analysis\_export of the fifo\_out, and as mentioned, the try\_peek exposes the duplicates in the fifo, so it must be one of the fifo and/or its axp!  
> I’m only showing the parts of the code where the packets are monitored and logged on the output. The input generation, monitoring and prediction work fine.  
> There is data available in the log-file, for the purposes of the blog I wrote “packet A info”, instead of the actual data, which is there…  
> I’m using get, as shown in the code provided in the question:  
> fifo\_out[link\_id].get(pkt\_item);

I guess your problem is caused by the try functions. Becaus it looks only if there is an item or not. Using get is always waiting for the next item. It is blocking. Using try\_peek or try\_get might show the same item several times.

---

_[View the full topic](https://verificationacademy.com/forums/t/duplicate-items-in-uvm-tlm-analysis-fifo-used-in-scoreboard/34501)._
