# How to use tlm\_analysis\_fifo?

**URL:** <https://verificationacademy.com/forums/t/how-to-use-tlm-analysis-fifo/28716>\
**Category:** UVM\
**Tags:** UVM\
**Created:** [July 18, 2013, 11:08am UTC](https://verificationacademy.com/forums/t/how-to-use-tlm-analysis-fifo/28716 "2013-07-18T11:08:56Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![lilyding](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/l/919ad9/32.png) [@lilyding](https://verificationacademy.com/forums/u/lilyding)\
**Post date:** [April 1, 2015, 5:15am UTC](https://verificationacademy.com/forums/t/how-to-use-tlm-analysis-fifo/28716/6 "2015-04-01T05:15:10Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/how-to-use-tlm-analysis-fifo/28716/5):_

Hi Dave,

Thanks for your reply. Here is my code like, the 1) works but 2) doesn’t work. Basically I have to add another analysis port, connect this analysis port to the monitor first, and then the write gets called, but if I connect the analysis fifo to the monitor directly, the write didn’t gets called … Does it make sense?

1. `uvm\_analysis\_imp\_decl(\_abc)

uvm\_analysis\_imp\_abc abc\_export; —\> Define another

uvm\_tlm\_analysis\_fifo abc\_fifo;

monitor.a\_port.connect(scoreboard.abc\_export); —\> Connect to this ap

function void write\_abc (input my\_transaction1 t1); —\> This one get called. Note it uses write\_abc  
if (t1.something)  
begin  
abc\_fifo.write(t2)  
end

1. uvm\_tlm\_analysis\_fifo abc\_fifo;

function void write (input my\_transaction1 t1); —\> Didn’t get called  
if (t1.something)  
begin  
abc\_fifo.write(t2)  
end

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-use-tlm-analysis-fifo/28716)._
