config_db_api

3 posts / 0 new
Last post
tudor.timi
Offline
Academy Total Access User
Joined: 06/27/2011
Posts: 13
config_db_api

Hi guys,

If I make a call to uvm_config_db #(..)::set(...) for a specific instance, will a corresponding uvm_config_db #(..)::get(..) be called for me if the field was registered with the macro? (similar to what happened in OVM with set_config_*)

Thanks,
Tudor

dave_59
Offline
Verification Forum Moderator
Joined: 03/10/2010
Posts: 976
Re: config_db_api

Only if you

  • use `uvm_component_util (not `uvm_object_util)
  • remember to call super.build()
  • are using one of these three types: uvm_object, string, and uvm_bitstream_t.
  • remember that set_config_int() is implemented as uvm_config_db #(uvm_bitstream_t)::set(...)
__________________

Dave Rich
Mentor Graphics
http://go.mentor.com/drich

tudor.timi
Offline
Academy Total Access User
Joined: 06/27/2011
Posts: 13
Re: config_db_api

Hi,

When you say only uvm_object, you mean doing a uvm_config_db #(uvm_object)::set(..., my_object, ...) right? That and only that, so not uvm_config_db #(my_class)::set(....).