[source]

Class uvm_pkg::uvm_object_string_pool

CLASS

uvm_object_string_pool #(T)

This provides a specialization of the generic <uvm_pool #(KEY,T)> class for an associative array of uvm_object-based objects indexed by string. Specializations of this class include the uvm_event_pool (a uvm_object_string_pool storing uvm_event#(uvm_object) ) and uvm_barrier_pool (a uvm_obejct_string_pool storing uvm_barrier).

Parameters

Name

Default value

Description

T

uvm_object

Variables

Name

Type

Description

type_name

string

Typedefs

Name

Actual Type

Description

this_type

uvm_object_string_pool#(T)

Constructors

new(string name = "")

Function

new

Creates a new pool with the given name .

Parameters:

name (string)

Functions

get_type_name()

Function

get_type_name

Returns the type name of this object.

get_global_pool()

Function

get_global_pool

Returns the singleton global pool for the item type, T.

This allows items to be shared amongst components throughout the verification environment.

Return type:

this_type

get_global(string key)

Function

get_global

Returns the specified item instance from the global item pool.

Parameters:

key (string)

Return type:

T

get(string key)

Function

get

Returns the object item at the given string key .

If no item exists by the given key , a new item is created for that key and returned.

Parameters:

key (string)

Return type:

T

delete(string key)

Function

delete

Removes the item with the given string key from the pool.

Parameters:

key (string)

do_print(uvm_printer printer)

Function- do_print

Parameters:

printer (uvm_printer)