# Uvm\_tlm\_fifo

**URL:** <https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793>\
**Category:** UVM\
**Tags:** TLM-FIFO-related, System-Verilog, UVM\
**Created:** [June 29, 2015, 10:37am UTC](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793 "2015-06-29T10:37:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dipan](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@dipan](https://verificationacademy.com/forums/u/dipan)\
**Post date:** [June 29, 2015, 10:37am UTC](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/1 "2015-06-29T10:37:47Z")

</div>

I have a question about tlm fifo.  
The uvm\_tlm\_fifo is size of only one.  
Is there is other tlm fifo available whose size is greater than one?

---

<div class="post-metadata">

**Author:** ![logie](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@logie](https://verificationacademy.com/forums/u/logie)\
**Post date:** [June 29, 2015, 1:21pm UTC](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/2 "2015-06-29T13:21:49Z")

</div>

The constructor for the TLM fifo has a size argument. The default size is ‘1’. But you can set it to whatever you want. A size of 0 implies no upper bound

Here is the portion of the source file.

// Function: new  
//  
// The ~name~ and ~parent~ are the normal uvm\_component constructor arguments.  
// The ~parent~ should be null if the \<uvm\_tlm\_fifo\> is going to be used in a  
// statically elaborated construct (e.g., a module). The ~size~ indicates the  
// maximum size of the FIFO; a value of zero indicates no upper bound.

function new(string name, uvm\_component parent = null, int size = 1);

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [June 29, 2015, 2:52pm UTC](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/3 "2015-06-29T14:52:30Z")

</div>

_In reply to [dip0](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/2):_

He did. It’s in the source code. But it is also in the Reference manual.

---

<div class="post-metadata">

**Author:** ![dipan](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@dipan](https://verificationacademy.com/forums/u/dipan)\
**Post date:** [June 29, 2015, 2:53pm UTC](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/4 "2015-06-29T14:53:25Z")

</div>

_In reply to [logie](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/3):_

Hi Logie , thank you for this information. Please tell me where can I find the source of this file.

---

<div class="post-metadata">

**Author:** ![dipan](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@dipan](https://verificationacademy.com/forums/u/dipan)\
**Post date:** [June 29, 2015, 3:46pm UTC](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/5 "2015-06-29T15:46:08Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/4):_

Thank you dave and logic for helping me out. :)

---

<div class="post-metadata">

**Author:** ![logie](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/l/74df32/32.png) [@logie](https://verificationacademy.com/forums/u/logie)\
**Post date:** [June 29, 2015, 3:46pm UTC](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/6 "2015-06-29T15:46:41Z")

</div>

_In reply to [dip0](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/5):_

$UVM\_HOME/src/tlm1/uvm\_tlm\_fifos.svh

Assuing $UVM\_HOME points to your installation of UVM.

---

<div class="post-metadata">

**Author:** ![dipan](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/c37758/32.png) [@dipan](https://verificationacademy.com/forums/u/dipan)\
**Post date:** [June 30, 2015, 6:09am UTC](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/7 "2015-06-30T06:09:41Z")

</div>

_In reply to [logie](https://verificationacademy.com/forums/t/uvm-tlm-fifo/30793/6):_

THank you logie.
