qwerty Posted June 29, 2011 Report Share Posted June 29, 2011 Hi , Why do we do a build instead of new. What are the limitations of new as compared to build? Quote Link to comment Share on other sites More sharing options...
dave_59 Posted June 29, 2011 Report Share Posted June 29, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.