uvm_resource_db

class uvm.base.uvm_resource_db.UVMResourceDb(T=None)[source]

Bases: object

class: UVMResourceDb

All of the functions in uvm_resource_db#(T) are static, so they must be called using the :: operator. For example:

UVMResourceDb.set("A", "*", 17, self)

The parameter value “int” identifies the resource type as UVMResource. Thus, the type of the object in the resource container is int. This maintains the type-safety characteristics of resource operations.

rsrc_t

alias of UVMResource

classmethod get_by_type(scope)[source]

function: get_by_type

Get a resource by type. The type is specified in the db class parameter so the only argument to this function is the scope.

classmethod get_by_name(scope, name, rpterr=True)[source]
classmethod set_default(scope, name)[source]
classmethod m_show_msg(id, rtype, action, scope, name, accessor, rsrc)[source]
classmethod set(scope, name, val, accessor=None)[source]
classmethod read_by_name(scope, name, val, accessor=None)[source]
classmethod write_by_name(scope, name, val, accessor=None)[source]
classmethod dump()[source]
class uvm.base.uvm_resource_db.UVMResourceDbOptions[source]

Bases: object

ready = False
tracing = False
classmethod turn_on_tracing()[source]

Function: 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~.

classmethod turn_off_tracing()[source]

Function: turn_off_tracing

Turn tracing off for the resource database.

classmethod is_tracing()[source]

Function: is_tracing

Returns 1 if the tracing facility is on and 0 if it is off.

static function bit is_tracing()

Returns:

classmethod init()[source]

static local function void init()

uvm.base.uvm_resource_db.ResourceDbClassFactory(name, argnames, T=None)[source]