Issue in Generating coverage when i have coverpoints with macros

In reply to TransVerif:

Code looks OK to me. I ran in another tool and got 50% coverage for your code and by changing repeat () got even 100%. Try and add the following line to query and print FCOV:

$display ("FCOV obtained: %3.2f%%", $get_coverage());

Perhaps you are missing “fcover” commands in Questa - Simple usage would be:

fcover -report

Regards
Srini
www.go2uvm.org