I trying to generate functional coverage using irun command.
I have given "-coverage functional" in the elab phase. I am not getting any of the data orirnted coverage. Can anybody knows what I am missing.
What sort of coverage are you expecting? SVA or PSL Assertions? SV, Specman or SystemC functional coverage groups?
OK, in that case, a few things to check: did you call the constructor for your covergroups? Did you destroy the class instances before the end of the simulation (this would remove the coverage)?
When the simulation runs and exits, does it print a banner showing the details of the coverage files that are being dumped?
When elaborating the design, if you add the -messages switch do you see the summary table at the end of the log, showing how many SV covergroups there are?
Do you mean that the covergroups are instantiated only in modules / program blocks or interfaces, and not in classes? If so then my comment about classes being destroyed (garbage collected) is not relevant.
Are you sure that your covergroups are ever sampled?