[source]

Class uvm_tlm_fifo

uvm_pkg::uvm_tlm_fifo <T> + type_name : string + can_get(): bit + can_peek(): bit + can_put(): bit + flush(): void + get() + get_type_name(): string + is_empty(): bit + is_full(): bit + peek() + put() + size(): int + try_get(): bit + try_peek(): bit + try_put(): bit + used(): int uvm_pkg::uvm_tlm_analysis_fifo <T> uvm_pkg::uvm_sequencer_analysis_fifo <RSP> <T : T> <T : RSP>

Inheritance Diagram of uvm_tlm_fifo

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.

Parameters

Name

Default value

Description

T

int

Variables

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 string get_type_name ( ) [source]

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 int used ( ) [source]

Returns the number of entries put into the FIFO.

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.

virtual function bit try_get ( int t ) [source]

virtual function bit try_peek ( int t ) [source]

virtual function bit try_put ( int t ) [source]

virtual function bit can_put ( ) [source]

virtual function bit can_get ( ) [source]

virtual function bit can_peek ( ) [source]

virtual function void flush ( ) [source]

Removes all entries from the FIFO, after which used returns 0 and is_empty returns 1.

Tasks

virtual function put ( int t ) [source]

virtual function get ( int t ) [source]

virtual function peek ( int t ) [source]