svt_config_object_db Class Reference

Inheritance diagram for class svt_config_object_db:

List of all members.


Detailed Description

Methodology independent configuration database that can be used to share object values.



Public Member Functions

static function bit  get ( uvm_component contxt, string scope = "", string variable, inout T value )
static function bit  get_from_parent ( uvm_component contxt, string scope = "", string variable, inout T value, input bit use_fallback )
static function void  set ( uvm_component contxt, string scope = "", string variable, T value )
static function void  set_for_child ( uvm_component contxt, string scope = "", string variable, T value )

Class Parameters

type  T = int; 


Member Function Documentation

 static function bit
 svt_config_object_db::get

 (  uvm_component contxt , string scope = "", string variable , inout T value  ) 


Matches the uvm_config_db 'get' signature, but provides support of OVM as well.

 static function bit
 svt_config_object_db::get_from_parent

 (  uvm_component contxt , string scope = "", string variable , inout T value , input bit use_fallback  ) 


Alternative to 'get' which can be used to pass an object directly from parent to child and avoid the competition with other similarly named objects stored in other scopes. Used in concert with the 'set_to_child' method.

The 'use_fallback' argument can be used to establish the generic 'get' method as a fallback, in the case where the 'get_from_parent' processing doesn't find the object as expected.

 static function void
 svt_config_object_db::set

 (  uvm_component contxt , string scope = "", string variable , T value  ) 


Matches the uvm_config_db 'set' signature, but provides support of OVM as well.

 static function void
 svt_config_object_db::set_for_child

 (  uvm_component contxt , string scope = "", string variable , T value  ) 


Alternative to 'set' which can be used to pass an object directly from parent to child and avoid the competition with other similarly named objects stored in other scopes. Used in concert with the 'get_from_parent' method.

Class Parameters Documentation

 type  attribute
 svt_config_object_db::T = int