hi,
Below is the snippet code related to coverage
bit [15:0] data_in;
covergroup cg;
INPUT_DATA0 : coverpoint data_in[3:0] { bins data0[] = [4'h0:4'hF] };
INPUT_DATA1 : coverpoint data_in[7:4] { bins data1[] = [4'h0:4'hF] };
INPUT_DATA2 : coverpoint data_in[11:8] { bins data2[] = [4'h0:4'hF] };
INPUT_DATA3 : coverpoint data_in[15:12] { bins data3[] = [4'h0:4'hF] };
endgroup:cg
In the above example, four coverpoints are used to the same variable.
Can it be possible to work around with a single coverpoint? Please suggest me, if any other possible solution.
Thanks in advance,
Jagan Kudimi