xua Posted July 3, 2015 Report Share Posted July 3, 2015 Hi, I am using uvm_resource_db to set and get any component configuration. But I am getting an error saying configuration object is not found. Its something that its not able to get the config object from configuration space. In env build_phase, I do set the configuration as below: uvm_resource_db#(io_config)::set("io_agent_0*","io_agent_config",m_io_config,this); And in io_agent, below code is used to get the configuration: assert(uvm_resource_db#(io_config)::read_by_name(get_full_name(),"io_agent_config",cfg,this) else uvm_report_fatal("io_agent","not able to get the configuration object"); Kindly let me know if there is anything wrong in the above usage. And also, can I do setting configuration through uvm_resource_db and getting it through uvm_config_db. Thanks A.Sunitha Quote Link to comment Share on other sites More sharing options...
ruchir.bharti Posted July 13, 2015 Report Share Posted July 13, 2015 Hello, Please check following link to find difference between two ; https://verificationacademy.com/forums/uvm/what-difference-between-uvmconfigdb-and-uvmresourcedb Thanks Ruchir karandeep963 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.