In reply to dave_59:
In reply to Ishan:
Incorrect. goal is a separate option.
Hi Dave,
Agreed, goal is a separate option.
If by “turn off” you mean “exclude from the final coverage calculation”, you can set the weight of the coverpoint to 0.
if (condition)
cginstname.cpname.option.weight=0;
You mentioned this above, but turning off a coverpoint is not having any impact on the final coverage calculation and is only increasing the individual coverage for that coverpoint.
How to impact the overall/cumulative coverage if I turn off a coverpoint (by making its weight =0)??