Search code examples
verilogsystem-veriloguvm

Is it possible to delete a uvm_config_db entry?


Is it possible to delete a

uvm_config_db#(uvm_bitstream_t)::set 

entry so that

uvm_config_db#(uvm_bitstream_t)::exists 

returns 0?

I have tried setting it to null, but exists still returns 1.


Solution

  • No, it is not possible. The only methods for uvm_config_db are set, get, exists and wait_modified. It is not very common to use complex types with config_db.

    If the type used has a constructor (i.e can be null), you can test like this:

    if (uvm_config_db(mytype)::get(..., myobj) && myobj !=null)
      //Entry exists and not null
    else
      // Entry does not exist or is null