# Decrease big matrix coverage automatically (only possible bins)

**URL:** <https://verificationacademy.com/forums/t/decrease-big-matrix-coverage-automatically-only-possible-bins/32982>\
**Category:** Coverage\
**Tags:** Coverage, CrossQueueType\
**Created:** [March 21, 2017, 12:51pm UTC](https://verificationacademy.com/forums/t/decrease-big-matrix-coverage-automatically-only-possible-bins/32982 "2017-03-21T12:51:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![noamannapurna](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/n/5daacb/32.png) [@noamannapurna](https://verificationacademy.com/forums/u/noamannapurna)\
**Post date:** [March 21, 2017, 12:51pm UTC](https://verificationacademy.com/forums/t/decrease-big-matrix-coverage-automatically-only-possible-bins/32982/1 "2017-03-21T12:51:19Z")

</div>

Hi,

I have two coverpoints (x\_cp, y\_cp), 8 bit each, and I would like to do cross between the two when only few bits (1-3 bits) are relevant for each value in x\_cp and I would like to define bins only on those possible options.

for example:  
assume x\_cp=8’d0, only the bits 1,3 are relevant in y\_cp, i.e. I would like to have bin for each possible combination:

1. (x\_cp=8’d0, y\_cp=8’b00000000)
2. (x\_cp=8’d0, y\_cp=8’b00000010)
3. (x\_cp=8’d0, y\_cp=8’b00001000)
4. (x\_cp=8’d0, y\_cp=8’b00001010)

assume x\_cp=8’d13, only the bit 5 is relevant in y\_cp, i.e. I would like to have bin for each possible combination:

1. (x\_cp=8’d13, y\_cp=8’b00000000)
2. (x\_cp=8’d13, y\_cp=8’b00100000)

and so on…  
I would like to have bins only on the above combinations (to ignore or define illegal for the other combinations).

If I have a file\array that indicates for each value in x\_cp, what are the possible bits in y\_p, how can I do it smartly (don’t want to encode 2^8 rows for each value of x\_cp)?  
I’ve seen examples about something that is called CrossQueueType that uses function that define the ignore\_bins, but it was a very simple situation (for example all values that satisfy x\_cp \< y\_cp [CrossQueueType example](http://www.amiq.com/consulting/2014/09/17/how-to-ignore-cross-coverage-bins-using-expressions-in-systemverilog/)).

Help would be truly appreciated!
