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