# Ignore bins with transition (wit iff condition)

**URL:** <https://verificationacademy.com/forums/t/ignore-bins-with-transition-wit-iff-condition/41033>\
**Category:** Coverage\
**Tags:** ignore-bins, transition-coverage-cross-bins-ignore\_bins, Coverage-bins, Coverage\
**Created:** [November 23, 2022, 12:52pm UTC](https://verificationacademy.com/forums/t/ignore-bins-with-transition-wit-iff-condition/41033 "2022-11-23T12:52:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junior](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/7ea924/32.png) [@Junior](https://verificationacademy.com/forums/u/Junior)\
**Post date:** [November 23, 2022, 12:52pm UTC](https://verificationacademy.com/forums/t/ignore-bins-with-transition-wit-iff-condition/41033/1 "2022-11-23T12:52:52Z")

</div>

Hi, I have this coverpoint:

```verilog

SAMP_cp :coverpoint data
{
   bins TRANS_A = ([0:3] => [0:3])
   ignore_bins IGNORE = (0 => [0:3]) iff(ignore)
}

```

And it doesn’t work correctly,  
even when ignore=0 it put some bins in ignore,  
and when ignore=1 is not do all the options.

Please suggest where I am wrong,  
Thanks

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [November 24, 2022, 2:01pm UTC](https://verificationacademy.com/forums/t/ignore-bins-with-transition-wit-iff-condition/41033/2 "2022-11-24T14:01:58Z")

</div>

_In reply to [Junior](https://verificationacademy.com/forums/t/ignore-bins-with-transition-wit-iff-condition/41033):_

The **iff** construct only disables sampling of a coverpoint bin; it does not prevent construction of a bin.

You can break this up into two coverpoints and set the weight if the coverpoint to 0 that you want to ignore.

```verilog
SAMP_cp0 :coverpoint data
{
   bins TRANS_A = (0 => [0:3])
}
SAMP_cp13 :coverpoint data
{
   bins TRANS_A = ([1:3] => [0:3])
}

```
