Class uvm_queue
Name |
Default value |
Description |
---|---|---|
T |
int |
Name |
Type |
Description |
---|---|---|
type_name |
string |
Name |
Actual Type |
Description |
---|---|---|
this_type |
Constructors
Functions
- static function this_type get_global_queue ( ) [source]
Returns the singleton global queue for the item type, T.
This allows items to be shared amongst components throughout the verification environment.
- static function T get_global ( int index ) [source]
Returns the specified item instance from the global item queue.
- virtual function T get ( int index ) [source]
Returns the item at the given index .
If no item exists by that key, a new item is created with that key and returned.
- virtual function void insert ( int index, int item ) [source]
Inserts the item at the given index in the queue.
- virtual function void delete ( int index ) [source]
Removes the item at the given index from the queue; if index is not provided, the entire contents of the queue are deleted.
- virtual function T pop_front ( ) [source]
Returns the first element in the queue (index=0), or null if the queue is empty.
- virtual function T pop_back ( ) [source]
Returns the last element in the queue (index=size()-1), or null if the queue is empty.
- virtual function void push_front ( int item ) [source]
Inserts the given item at the front of the queue.
- virtual function void push_back ( int item ) [source]
Inserts the given item at the back of the queue.
- virtual function uvm_object create ( string name ) [source]
- virtual function void do_copy ( uvm_object rhs ) [source]
CLASS
uvm_queue #(T)
Implements a class-based dynamic queue. Allows queues to be allocated on demand, and passed and stored by reference.