What is the difference between `uvm_do_callback and `uvm_do_obj_callback?

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

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

In reply to tfitz:

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

In reply to methekaran:

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?