frodus Posted October 27, 2011 Report Posted October 27, 2011 Hi All, I was trying to use the documented way of changing the "is_active" state inside of an uvm_agent. Which looked as followed: set_config_int("*kr_0_mon", "is_active", UVM_PASSIVE); kr_0_mon = kr_agent::type_id::create("kr_0_mon",this); The working code instead was this: (And I think that is what should be updated): // Inside of the env build process: uvm_config_db#(uvm_active_passive_enum)::set(this, "*kr_0_mon", "is_active", UVM_PASSIVE); kr_0_mon = kr_agent::type_id::create("kr_0_mon",this); // Inside of the agent build process: void'(uvm_config_db#(uvm_active_passive_enum)::get(this, "", "is_active", is_active)); So for my understanding this is a BUG inside of the documentation can someone confirm this? Bye, Frodus Quote
jadec Posted October 29, 2011 Report Posted October 29, 2011 Did you hide the uvm_agent::is_active variable with your own implementation version? The is_agent in uvm_agent is explicitly loaded by get_config_int. If you had a new variable, You could also implicitly load your new variable by putting it into a `uvm_component_util_begin which would also expect set_config_int. Quote
frodus Posted October 31, 2011 Author Report Posted October 31, 2011 Hi Jadec, no not at all I did not try to overload the "is_active" in any way and the agent which I was trying to use is directly derived from the uvm_agent it is simply not working for me. Bye, Frodus Quote
jadec Posted October 31, 2011 Report Posted October 31, 2011 I found this to work in my local experiments. Check that there's no other set_config_int overriding the one you tried. Quote
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.