# What is the difference between \`uvm\_do\_callback and \`uvm\_do\_obj\_callback?

**URL:** <https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-do-callback-and-uvm-do-obj-callback/30776>\
**Category:** UVM\
**Tags:** UVM, UVM-callback\
**Created:** [June 24, 2015, 5:46pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-do-callback-and-uvm-do-obj-callback/30776 "2015-06-24T17:46:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![methekaran](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/f07891/32.png) [@methekaran](https://verificationacademy.com/forums/u/methekaran)\
**Post date:** [June 24, 2015, 5:46pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-do-callback-and-uvm-do-obj-callback/30776/1 "2015-06-24T17:46:46Z")

</div>

Can anybody please provide an example for `uvm_do_callback and `uvm\_do\_obj\_callback? Is it recommended to use UVM callbacks or not recommended?

Thanks.  
Karan Methe

---

<div class="post-metadata">

**Author:** ![tfitz](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/tfitz/32/3025_2.png) [@tfitz](https://verificationacademy.com/forums/u/tfitz)\
**Post date:** [June 24, 2015, 5:51pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-do-callback-and-uvm-do-obj-callback/30776/2 "2015-06-24T17:51:54Z")

</div>

Not recommended. Please let us know what you’re trying to accomplish and there’s probably a non-callback way of doing it.

---

<div class="post-metadata">

**Author:** ![methekaran](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/f07891/32.png) [@methekaran](https://verificationacademy.com/forums/u/methekaran)\
**Post date:** [June 24, 2015, 5:57pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-do-callback-and-uvm-do-obj-callback/30776/3 "2015-06-24T17:57:30Z")

</div>

_In reply to [tfitz](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-do-callback-and-uvm-do-obj-callback/30776/2):_

Thanks a lot.  
I am trying to provide an interface to the callback class and do certain operations from the callback and  
resume my current operation.  
However, if I am not wrong callback class doesn’t have the build phase which makes it difficult to use uvm\_config\_db/factory override.  
Correct me if I am wrong.

Thanks.  
Karan Methe

---

<div class="post-metadata">

**Author:** ![tfitz](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/tfitz/32/3025_2.png) [@tfitz](https://verificationacademy.com/forums/u/tfitz)\
**Post date:** [June 24, 2015, 6:12pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-do-callback-and-uvm-do-obj-callback/30776/4 "2015-06-24T18:12:01Z")

</div>

_In reply to [methekaran](https://verificationacademy.com/forums/t/what-is-the-difference-between-uvm-do-callback-and-uvm-do-obj-callback/30776/3):_

The real question is why you think you need to use the callback class in the first place. What “certain operations” do you want to do before resuming the current operation?
