Usage of configdb

In reply to srinu:

  1. uvm_config_db#(virtual ahb_if)::set(uvm_root::get(), “*”, “ahb_if”, vif);

This is “pushing” the virtual interface “vif” of name “ahb_if” to every “*” components from the top level module.

2)uvm_config_db#(virtual ahb_if)::get(this, “”, “ahb_if”, vif);

This is “retrieving” interface “ahb_if” and assigning it to “vif”.

3)assert(uvm_config_db#(int)::get(null, get_full_name(), “no_txn”, no_txn));

This is a basic assert which notifies when no transaction is retrieved.