Hi All,
Is it possible to get configuration values(env_config or agent_config) in env or agent without using “uvm_config_db” or “set_config_object” in UVM.
Thanks,
ArasuNatarajan
Hi All,
Is it possible to get configuration values(env_config or agent_config) in env or agent without using “uvm_config_db” or “set_config_object” in UVM.
Thanks,
ArasuNatarajan
In reply to arasupotri.natarajan90:
Hi,
Yes,It is possible.
In that case you need to use testbench hierarchy path to set configuration object.
i.e top.env.config = env_config_obj.
top.env.agent.config= agent_config_obj.
Above approach is valid but not recommended as it limits the reusability of testbench code.
In reply to Digvijaysinh Suryavanshi:
There are 2 different approaches for configuration.
(1) Using configuration objects. These are class based objects you can deal with and connect through your testbench hierarchy.
(2) using the configuration database with uvm_config_db::set/get.
Both approaches addressing different objectives.