Jump to content

What are the limitations of new() function as compared to build.


Recommended Posts

The key problem with new() is that you cannot override it, you can only extend it. The extension functionality must always be appended to the base class functionality because super.new() is implicitly or explicitly the first statement of any extended new function.

build has none of those requirements; you can put a call to super.build anywhere in the extended build as well as not all. BTW, UVM now uses build_phase() instead of build.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...