Class uvm_tlm_fifo
Name |
Default value |
Description |
---|---|---|
T |
int |
Name |
Type |
Description |
---|---|---|
type_name |
string |
Constructors
- function new ( string name, uvm_component parent, int size ) [source]
The name and parent are the normal uvm_component constructor arguments. The parent should be null if the uvm_tlm_fifo#(T) 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.
Functions
- virtual function int size ( ) [source]
Returns the capacity of the FIFO-- that is, the number of entries the FIFO is capable of holding. A return value of 0 indicates the FIFO capacity has no limit.
- virtual function bit is_empty ( ) [source]
Returns 1 when there are no entries in the FIFO, 0 otherwise.
- virtual function bit is_full ( ) [source]
Returns 1 when the number of entries in the FIFO is equal to its size, 0 otherwise.
Tasks
Class
uvm_tlm_fifo#(T)
This class provides storage of transactions between two independently running processes. Transactions are put into the FIFO via the put_export . transactions are fetched from the FIFO in the order they arrived via the get_peek_export . The put_export and get_peek_export are inherited from the uvm_tlm_fifo_base #(T) super class, and the interface methods provided by these exports are defined by the uvm_tlm_if_base #(T1,T2) class.