Hello,
I’m unable to get the required bins for 2 integers X and Y, my code follows the below requirement
bins requirements are-
X==1 and Y>1
X==2 and Y>2
X==1 and Y==1
X>1 and Y==1
code :
You had a couple of issues with the posted code. The bins cannot all be named
c1, and the 4th bin should have the range
[2:120]. Then the bins you should ignore are
A cross of two coverpoints without any bins and ignore_bins automatically creates an individual bin for each cross-product–in this case 20*14 = 280 bins. Each bin that you explicitly declare in cross replaces the set of automatically created bins that overlap. c4 in my first example collapses 19 individual bins with a single bin. c1 just replaces 1 bin with another bin giving it a new name.
Any remaining automatically created bins are retained. You need an explicit ignore_bins to get rid of them. Note that the proposed IEEE P1800-2023 LRM adds an new option setting cross_retain_auto_bins=0 that prevents the automatically generated bins from being retained.