# CROSS Coverage

**URL:** <https://verificationacademy.com/forums/t/cross-coverage/40098>\
**Category:** Coverage\
**Tags:** Coverage, cross-coverage, binsof, cross-bins\
**Created:** [February 25, 2022, 10:32am UTC](https://verificationacademy.com/forums/t/cross-coverage/40098 "2022-02-25T10:32:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 25, 2022, 6:33pm UTC](https://verificationacademy.com/forums/t/cross-coverage/40098/2 "2022-02-25T18:33:48Z")

</div>

_In reply to [Himanshu m soni](https://verificationacademy.com/forums/t/cross-coverage/40098):_

Lots of syntax errors in your code, but perhaps this is what you are looking for:

```verilog
  int wvar;
  int var_a,var_b,var_c;
   
  covergroup cg;
    a : coverpoint var_a
    {
      bins a_1 = {0};
      bins a_2 = {1};
    }
    b : coverpoint var_b
    {
      bins b_1 = {0};
      bins b_2 = {1};
    }
    c : coverpoint var_c
    {
      bins c_1 = {0};
      bins c_2 = {1};
    }
     all_cfg: cross a, b, c
    {
      ignore_bins invalid = binsof (a) with (wvar==0);
     }
  endgroup

```

The **iff** keyword only disables sampling of existing bins, it does not eliminate them.

---

_[View the full topic](https://verificationacademy.com/forums/t/cross-coverage/40098)._
