Uvm_monitor code optimization

In reply to Abuzar Gaffari:

Optimized for what?

The monitor does not know when there is a transaction being driven unless it checks the bus every cycle. Without knowing the exact protocol being used, there might be a way to suspend the process until a certain signal changes, but there might not be much benefit.

Whenever you are concerned about performance, you should be using your tool’s performance profiling features to make sure you are spending effort in the most effective areas. The problem areas are not always where you think they are.