# Functional Coverage - bin that collects all values that are not collected in other bins

**URL:** <https://verificationacademy.com/forums/t/functional-coverage-bin-that-collects-all-values-that-are-not-collected-in-other-bins/38578>\
**Category:** Coverage\
**Tags:** UVM-Coverage, Coverage, Syemverilog\
**Created:** [January 12, 2021, 4:29pm UTC](https://verificationacademy.com/forums/t/functional-coverage-bin-that-collects-all-values-that-are-not-collected-in-other-bins/38578 "2021-01-12T16:29:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yakirye](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/y/e36b37/32.png) [@yakirye](https://verificationacademy.com/forums/u/yakirye)\
**Post date:** [January 12, 2021, 4:29pm UTC](https://verificationacademy.com/forums/t/functional-coverage-bin-that-collects-all-values-that-are-not-collected-in-other-bins/38578/1 "2021-01-12T16:29:04Z")

</div>

```
ipv6_hdr__f_next_header_cp: coverpoint this.ipv6_hdr.ipv6_f_next_header iff (this.has_ipv6_header){
    bins ipsec_33 = {'h33};
    bins tcp_06 = {'h06};
    bins udp_11 = {'h11};
    bins done_3b = {'h3b};
    bins ipv6_ext_any_other [3] = {[0:'h5], ['h7:'h10], ['h12:'h3a], ['h3c:$]};
}

```

‘ipv6\_ext\_any\_other’ bin should collect all vals that are not collected by other bins. ‘default’ might be used, but the problem is that ‘default’ is not an ‘active’ bin, i mean, it is not a part of the func cov metrics.

is there any other way of defining the ‘ipv6\_ext\_any\_other’ bin? alternatively, is there a way of making the ‘default’, an active bin?

---

<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:** [January 14, 2021, 6:24am UTC](https://verificationacademy.com/forums/t/functional-coverage-bin-that-collects-all-values-that-are-not-collected-in-other-bins/38578/2 "2021-01-14T06:24:46Z")

</div>

_In reply to [yakirye](https://verificationacademy.com/forums/t/functional-coverage-bin-that-collects-all-values-that-are-not-collected-in-other-bins/38578):_

You can do

```
bins ipv6_ext_any_other [3] = {[0:$]} with (!(item inside {'h33,'h06,'h11,'h3b}));

```

Also see [0004698: Change functional coverage "default" behavior for bins - Accellera Mantis](https://accellera.mantishub.io/view.php?id=4698)

---

<div class="post-metadata">

**Author:** ![yakirye](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/y/e36b37/32.png) [@yakirye](https://verificationacademy.com/forums/u/yakirye)\
**Post date:** [January 14, 2021, 7:38am UTC](https://verificationacademy.com/forums/t/functional-coverage-bin-that-collects-all-values-that-are-not-collected-in-other-bins/38578/3 "2021-01-14T07:38:20Z")

</div>

10x Dave!
