Thursday, December 22, 2016

What is the difference between create and new function in UVM?

In UVM, the create() method causes an object instance to be created from the factory.
This allows you to use factory overrides to replace the desired object with an object of a different type without having to recode.
So you should always use create() rather than using new() for classes registered with the factory.

No comments:

Post a Comment