uvm_resource_db

Implementation of uvm_resource_db, as defined in section C.3.2.1 of 1800.2-2020, with the following additional API

class uvm_resource_db#(type T=uvm_object)
Summary
uvm_resource_db
Implementation of uvm_resource_db, as defined in section C.3.2.1 of 1800.2-2020, with the following additional API
Methods
set_overrideCreate a new resource, write val to it, and set it into the database.
set_override_typeCreate a new resource, write val to it, and set it into the database.
set_override_nameCreate a new resource, write val to it, and set it into the database.

set_override

static function void set_override(
    input  string  scope,   
    input  string  name,   
    val,   
    uvm_object  accessor  =  null
)

Create a new resource, write val to it, and set it into the database.  Set it at the beginning of the queue in the type map and the name map so that it will be (currently) the highest priority resource with the specified name and type.

@uvm-contrib

set_override_type

static function void set_override_type(
    input  string  scope,   
    input  string  name,   
    val,   
    uvm_object  accessor  =  null
)

Create a new resource, write val to it, and set it into the database.  Set it at the beginning of the queue in the type map so that it will be (currently) the highest priority resource with the specified type.  It will be normal priority (i.e. at the end of the queue) in the name map.

@uvm-contrib

set_override_name

static function void set_override_name(
    input  string  scope,   
    input  string  name,   
    val,   
    uvm_object  accessor  =  null
)

Create a new resource, write val to it, and set it into the database.  Set it at the beginning of the queue in the name map so that it will be (currently) the highest priority resource with the specified name.  It will be normal priority (i.e. at the end of the queue) in the type map.

@uvm-contrib

static function void set_override(
    input  string  scope,   
    input  string  name,   
    val,   
    uvm_object  accessor  =  null
)
Create a new resource, write val to it, and set it into the database.
static function void set_override_type(
    input  string  scope,   
    input  string  name,   
    val,   
    uvm_object  accessor  =  null
)
Create a new resource, write val to it, and set it into the database.
static function void set_override_name(
    input  string  scope,   
    input  string  name,   
    val,   
    uvm_object  accessor  =  null
)
Create a new resource, write val to it, and set it into the database.