# Transition with values that are not referenced

**URL:** <https://verificationacademy.com/forums/t/transition-with-values-that-are-not-referenced/38466>\
**Category:** Coverage\
**Tags:** coverpoint, Coverage, Transition-Coverage\
**Created:** [December 14, 2020, 11:02am UTC](https://verificationacademy.com/forums/t/transition-with-values-that-are-not-referenced/38466 "2020-12-14T11:02:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avi\_311](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@Avi\_311](https://verificationacademy.com/forums/u/Avi_311)\
**Post date:** [December 14, 2020, 11:02am UTC](https://verificationacademy.com/forums/t/transition-with-values-that-are-not-referenced/38466/1 "2020-12-14T11:02:46Z")

</div>

given the following coverpoint

```verilog

example_0: coverpoint sample_0
{
bins trans_0 = (0=>1=>0);
}

```

If sample\_0 transitions like this: 0=\>1=\>2=\>0  
does this count as a hit for bins trans\_0? because the value 2 is not in the transition, does it just wait for the next sample? or does it try again from the first value in the transition?

---

<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:** [December 14, 2020, 5:38pm UTC](https://verificationacademy.com/forums/t/transition-with-values-that-are-not-referenced/38466/2 "2020-12-14T17:38:31Z")

</div>

_In reply to [Avi\_311](https://verificationacademy.com/forums/t/transition-with-values-that-are-not-referenced/38466):_

It restarts from the first value. You may want to look at the repetition operators if you want to cover more complex transitions.

---

<div class="post-metadata">

**Author:** ![Avi\_311](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/c37758/32.png) [@Avi\_311](https://verificationacademy.com/forums/u/Avi_311)\
**Post date:** [December 16, 2020, 9:01am UTC](https://verificationacademy.com/forums/t/transition-with-values-that-are-not-referenced/38466/3 "2020-12-16T09:01:55Z")

</div>

In the following case where I have

```verilog
example_0: coverpoint sample_0
{
bins trans_1 = (1=>1);
}

```

and sample\_0 transitions like this: 1=\>1=\>1=\>1.  
Does this count as 2 hits? or 3?  
In other words, does the coverpoint continue only from where it left off with the last sample, or does it also simultaneously try to sample again from the beginning of the transition?

Another question: Anything not specified in the current bins will automatically be ignore?  
Like for example, if sample\_0 transitions like this: 1=\>1=\>0=\>1, this only counts as 1 hit?  
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:** [December 17, 2020, 4:30am UTC](https://verificationacademy.com/forums/t/transition-with-values-that-are-not-referenced/38466/4 "2020-12-17T04:30:17Z")

</div>

_In reply to [Avi\_311](https://verificationacademy.com/forums/t/transition-with-values-that-are-not-referenced/38466/3):_

3 hits. Transitions always start from the first value every sample. Any bin not specified can’t be hit.
