Hi,
I need to write Functional coverage for my project.
Can someone help me,where I have to write FC code and how to compile that.
I am using Questasim tool.
Thank you,
VK
In reply to Vinod_KR:
Finally it depends what do you want to investigate with respect to functional coverage.
If you want to know what Kind of Random pattern you have generated you Can implement your coverage collector the agent, observing the seq_items comimg from the sequencer.
If you want to calculate functional coverage for data comimg from different agents you have to implement it in your environment.
Note these are only 2 ideas. The UVM does not define where you have to implement your coverage collector.
In reply to Vinod_KR:
Hi Vinod,
You can implement the coverage inside the scoreboard if your IP is small. Else you can define a subscriber to implement the coverage model.
So, If subscriber case, you can have tx monitors and rx_monitors to monitor the transactions and sample the coverpoints based on your requirement.
Compilation:
It is as same as the normal UVM TB compilation. And it is recommended to have a test control knobs to enable the coverage as coverage reporting is some burden and not necessary always in each run of simulation.