[UVM]UVM TLM FIFO

                                   UVM TLM FIFO

  • 目录

         UVM TLM FIFO

一、TLM FIFO Overview

二、TLM FIFO Classes

三、TLM FIFO Methods

3.1、new

3.2、size

3.3、used

3.4、is_empty

3.5、is_full

3.6、flush

四、Summary of TLM FIFOs


       The TLM FIFO provides storage for the transactions between two independently running processes. We have seen put and get methods operates with only one outstanding transaction at a time i.e it is allowed to send the transaction Only after consumption of the previously sent transaction, in this case, the sender and receiver must be in sync else lead to blocking in one of the components.

       What if the case where the sender needs not wait for the receiver acknowledgment, it just wants to store it in memory and the receiver can consume whenever required. in this sender and The receiver needs not to be in sync. Yes With TLM FIFO it is possible.

                    

 

一、TLM FIFO Overview

  • In TLM FIFO, the sender pushes the transactions to FIFO and whenever it required reiver pops it out or fetches from the FIFO
  • Transactions are put into the FIFO via the put_export method
  • Transactions are fetched from the FIFO via the get_peek_export method
  • As its FIFO (First In First Out), transactions are fetched from the FIFO in the order they are put

二、TLM FIFO Classes

uvm_tlm_fifo #(T)

       This class provides storage of transactions between two independently running processes

 

三、TLM FIFO Methods

3.1、new

  •   This is a constructor method used for the creation of TLM FIFO
function new (string name,
              uvm_component parent,
              int size=1);
  • The name and parent are the normal uvm_component constructor arguments
  • The size indicates the maximum size of the FIFO; a value of zero indicates no upper bound

3.2、size

  • Calling size() returns the size of the FIFO
  • A return value of 0 indicates the FIFO capacity has no limit

3.3、used

  • Returns the number of entries put into the FIFO

3.4、is_empty

  • Returns 1 when there are no entries in the FIFO, 0 otherwise

3.5、is_full

  • Returns 1 when the number of entries in the FIFO is equal to its size, 0 otherwise

3.6、flush

  • Calling flush method will Remove all entries from the FIFO
  • after the flush method call used method returns 0 and the is_empty method returns 1

 

四、Summary of TLM FIFOs

                                            

发布了208 篇原创文章 · 获赞 150 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/gsjthxy/article/details/105467303
今日推荐