Hardware interview practice
Factory paths for objects
Inside agent uvm_test_top.env.a0, a non-component configuration object is created as shown. Which full instance path should an object instance override normally target?
Starting point
Question code
cfg = base_cfg::type_id::create("cfg", this);Choose one
Answer choices
- A. cfg, because uvm_object has no hierarchical name
- B. uvm_test_top.env.a0.cfg, because factory context combines the parent component path and requested object name
- C. uvm_test_top.env.a0, because the object's requested name is ignored
- D. base_cfg::cfg, because object overrides use type scope rather than instance scope
