Hi UVM experts,
I read from the Advanced UVM book (Second Edition) that resource_db must be used when information is not associated with any part of the uvm component hierarchy, otherwise we must use config_db.
Therefore according to the author, it is recommended to use resource_db for handling virtual interface registration.
However i came with cases where component hierarchy matters for registering virtual interfaces such as follows :
Tx_env contains one apb agent
Rx_env contains one apb agent
Top_env contains one tx_env and one rx_env.
In testbench I have two differents apb interfaces, one for rx and one for tx.
In this case, how can i use resource_db for registering the two apb interfaces as I use the same apb class for tx and rx ?
Best regards,
Victor Perrin
Verification Engineer