UVM Coding Practice · Senior
config_db Hierarchical Paths
set/get paths from top to agent.
Interview prompt
Push apb_vif from top to agent driver — exact set/get strings.
diagram
WHITEBOARD CHAIN
1. DECLARE interfaces / types / ports you need
2. SKELETON class extends + utils macro + key methods
3. MECHANISM fill one critical method while narrating
4. PITFALL name one bug juniors make on this pattern
5. TEST how you would smoke-test the componentReference sketch (≤40 lines)
systemverilog
// top
uvm_config_db#(apb_vif)::set(this, "env.agent*", "vif", vif);
// agent build
uvm_config_db#(apb_vif)::get(this, "", "vif", vif);Common pitfalls
Path typo.
get before set in same phase wrong hierarchy.