UVM Callback Method

In UVM, why we require callback method? How can we implement it?
Please refer any case study document/example for better understanding.

Thanks in Advance.

A callback is kind of a hook that gets called automatically when a specific event takes place. You need to create a callback and then register it.

To understand UVM callbacks from the fundamentals, look for OOP design pattern called “Observer Pattern”. Callbacks in UVM can be used to attach monitors, for functional coverage and sometimes for error injection. At times people use callbacks for processing transactions, which should be avoided since it breaks the principle of “Observer Pattern”.

Observe – do not modify.

1 Like

I will post some Embedded UVM examples later.