Hi Dave,
I have the following requirement, for which I am not sure how do I implement the coverage.
module my_cov {
input logic[15:0] position,
};
covergroup cg_en;
cp_position position {
bins one_hot[16] = {[0:15]};
}
endcovergroup
initial begin
cg_en = new();
end
always @ (some_cond) begin
cg_en.sample();
end
endmodule
Now this module my_oov is bound an RTL module which is instantiated 4 times.
My requirement is as below:
In Instance # 0 of the coverage module, in my covergroup, I am interested in only values [0:3]. Rest I would like to ignore or not create.
In Instance # 1 of the coverage module, in my covergroup, I am interested in only values [4:7]. Rest I would like to ignore or not create.
In Instance # 2 of the coverage module, in my covergroup, I am not interested in any values. I do not mind to ignore all the values or dont construct the cover group at all.
In Instance # 3 of the coverage module, in my covergroup, I am not interested in any values. I do not mind to ignore all the values or dont construct the cover group at all.
Is there a way to achive/implement such a requirement?
Thanks,
Madhu