Hi all, according to the description in the IEEE system verilog, that the default specification defines a bin that associated with none of the defined value bins. And however, the coverage calculation for a coverage point shall not take into account the coverage captured by the default bin.
So in the following code ,the others are NOT take into account to calculate the coverage.
covergroup CovValue;
dst : coverpoint data.dst[3:0]{
bins zero = {0};
bins two = {2};
bins others = default;
}
endgroup
So I need to write all of them manually if I want the others to be valid.
But when the data is huge, for example 256,1024 or more what should I do? Anyway, use the script to generate the code is one way.
Is there any other suggestion for that?