In reply to amjadhav:
In reply to nisreenj:
Hi nisreenj,
Thank you for descriptive the ways. I just wanted to understand why scoreboard handle is needed inside coverage component ?
Regards
AJ
I do not agree with nisreenj. There is one important rule in UVM: keep things which do not belong together like functional coverage and scoreboarding seperately.
The UVM does not say anything where to implement the functional coverage. It is your decision where to do it.
If you want to know what did you stimulate from each agent it is useful to have a coverage collector inside your agents. If you are interested in more global coverage it has to be somewhere in the env.
Calculating functional coverage does not consume time. A good base class is the uvm_subscriber which has a built-in analysis_export/imp.