gaurav7589 Posted December 7, 2011 Report Share Posted December 7, 2011 Recently in a workout, I wanted to customize compare function. First I used do_compare() , which was unsuccessful but it was successful with compare(). I want to know the difference between two . Please let me know. Thanks Quote Link to comment Share on other sites More sharing options...
jadec Posted December 7, 2011 Report Share Posted December 7, 2011 do_compare is called internally by uvm. It is intended to be overridden to provide custom class functionality. It should never be called directly by the user. "compare" is the correct method for user to call. Quote Link to comment Share on other sites More sharing options...
uwes Posted December 9, 2011 Report Share Posted December 9, 2011 hi, you should call compare() and add own functionality in do_compare(). as a rule of thumb call XXX and add own functionality in do_XXXX /uwe Quote Link to comment Share on other sites More sharing options...
gaurav7589 Posted December 9, 2011 Author Report Share Posted December 9, 2011 Thanks alot... 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.