Hi all,
Can anyone clarify me why do we set uvm_component parent = null in new constructor of components?
Thanks in Advance!!!
Hi all,
Can anyone clarify me why do we set uvm_component parent = null in new constructor of components?
Thanks in Advance!!!
In reply to Swetha Reddy E:
Declaring function arguments defaults allows you to call the function without specifying that argument. This makes sense for arguments that are rarely different that the default. But in the case of classes derived from uvm_component, only the one top-level test component has a null parent. All the other components should provide an actual parent.