UVM Resource Database | |
Intro | The uvm_resource_db class provides a convenience interface for the resources facility. |
The uvm_resource_db class provides a convenience interface for the resources facility. In many cases basic operations such as creating and setting a resource or getting a resource could take multiple lines of code using the interfaces in uvm_resource_base or uvm_resource#(T). The convenience layer in uvm_resource_db reduces many of those operations to a single line of code.
If the run-time +UVM_RESOURCE_DB_TRACE command line option is specified, all resource DB accesses (read and write) are displayed.
This class contains static functions for manipulating and retrieving options that control the behavior of the resources DB facility.
@uvm-accellera The details of this API are specific to the Accellera implementation, and are not being considered for contribution to 1800.2
uvm_resource_db_options | ||
This class contains static functions for manipulating and retrieving options that control the behavior of the resources DB facility. | ||
Class Declaration | ||
| ||
Methods | ||
turn_on_tracing | Turn tracing on for the resource database. | |
turn_off_tracing | Turn tracing off for the resource database. | |
is_tracing | Returns 1 if the tracing facility is on and 0 if it is off. |
static function void turn_on_tracing()
Turn tracing on for the resource database. This causes all reads and writes to the database to display information about the accesses. Tracing is off by default.
This method is implicitly called by the +UVM_RESOURCE_DB_TRACE.
@uvm-accellera The details of this API are specific to the Accellera implementation, and are not being considered for contribution to 1800.2
static function void turn_off_tracing()
Turn tracing off for the resource database.
@uvm-accellera The details of this API are specific to the Accellera implementation, and are not being considered for contribution to 1800.2
static function bit is_tracing()
Returns 1 if the tracing facility is on and 0 if it is off.
@uvm-accellera The details of this API are specific to the Accellera implementation, and are not being considered for contribution to 1800.2
Implementation of uvm_resource_db, as defined in section C.3.2.1 of 1800.2-2020.
class uvm_resource_db #( type T = uvm_object )
Implementation of uvm_resource#(T) as defined in section C.2.5.1 of 1800.2-2020.
class uvm_resource #( type T = int ) extends uvm_resource_base
This class contains static functions for manipulating and retrieving options that control the behavior of the resources DB facility.
class uvm_resource_db_options
Turn tracing on for the resource database.
static function void turn_on_tracing()
Turn tracing off for the resource database.
static function void turn_off_tracing()
Returns 1 if the tracing facility is on and 0 if it is off.
static function bit is_tracing()