1,uvm_config_db
用于local的配置
Summary
uvm_config_db |
All of the functions in uvm_config_db#(T) are static, so they must be called using the :: operator. |
Class Hierarchy |
|
|
Class Declaration |
|
class uvm_config_db#( | | type | T | = | int | ) extends uvm_resource_db#(T) | |
|
Methods | |
get | Get the value for field_name in inst_name, using component cntxt as the starting search point. |
set | Create a new or update an existing configuration setting for field_name in inst_name from cntxt. |
exists | Check if a value for field_name is available in inst_name, using component cntxt as the starting search point. |
wait_modified | Wait for a configuration setting to be set for field_namein cntxt and inst_name. |
static function void set( | uvm_component | cntxt, | | string | inst_name, | | string | field_name, | | T | value | ) | |
static function bit get( | | uvm_component | cntxt, | | | string | inst_name, | | | string | field_name, | | inout | T | value | ) | |
static function bit exists( | uvm_component | cntxt, | | | string | inst_name, | | | string | field_name, | | | bit | spell_chk | = | ) | |
2, uvm_resource_db
用于全局的配置
Summary
uvm_resource_db |
All of the functions in uvm_resource_db#(T) are static, so they must be called using the :: operator. |
Class Declaration |
|
class uvm_resource_db #( | type | T | = | uvm_object | ) | |
|
Methods | |
get_by_type | Get a resource by type. |
get_by_name | Imports a resource by name. |
set_default | add a new item into the resources database. |
set | Create a new resource, write a val to it, and set it into the database using name and scope as the lookup parameters. |
set_anonymous | Create a new resource, write a val to it, and set it into the database. |
read_by_name | locate a resource by name and scope and read its value. |
read_by_type | Read a value by type. |
write_by_name | write a val into the resources database. |
write_by_type | write a val into the resources database. |
dump | Dump all the resources in the resource pool. |
static function rsrc_t get_by_type( | string | scope | ) | |
static function rsrc_t get_by_name( | string | scope, | | | | string | name, | | | | bit | rpterr | = | 1 | ) | |
static function rsrc_t set_default( | string | scope, | | string | name | ) | |
static function void set( | input | string | scope, | | | | input | string | name, | | | | | T | val, | | | | input | uvm_object | accessor | = | null | ) | |
static function void set_anonymous( | input | string | scope, | | | | | T | val, | | | | input | uvm_object | accessor | = | null | ) | |
static function bit read_by_name( | input | string | scope, | | | | input | string | name, | | | | inout | T | val, | | | | input | uvm_object | accessor | = | null | ) | |
static function bit read_by_type( | input | string | scope, | | | | inout | T | val, | | | | input | uvm_object | accessor | = | null | ) | |
static function bit write_by_name( | input | string | scope, | | | | input | string | name, | | | | | T | val, | | | | input | uvm_object | accessor | = | null | ) | |
static function bit write_by_type( | input | string | scope, | | | | input | T | val, | | | | input | uvm_object | accessor | = | null | ) | |
static function void dump() |
参考:
http://www.vmmcentral.org/uvm_vmm_ik/files3/base/uvm_config_db-svh.html
http://www.vmmcentral.org/uvm_vmm_ik/files3/base/uvm_resource_db-svh.html