I found below statement in UVM cookbook, can anyone elaborate this,
A phase level virtual method that is not implemented results in the component
effectively not participating in that phase.
I found below statement in UVM cookbook, can anyone elaborate this,
A phase level virtual method that is not implemented results in the component
effectively not participating in that phase.
In reply to jeyanthis:
It means that if you don’t implement a phase in a component, nothing happens in that component during that phase.
In reply to cgales:
Thank you, I used to call super function as first line in each phase’s function even I dont have anything to do with that phase in my component. Is that required really?
In reply to jeyanthis:
If your component does nothing in a phase, there is no need to create the specific phase task/function to only call ‘super.phase()’.
In reply to jeyanthis:
Just to say this a bit stronger, you should never add a virtual method override just to call super.method. You are just creating overhead with an extra method call.
The UVM calls every phase method defined in uvm_component whether you have override it or not.