# Is there any difference in a sequence coded as transition of coverpoint vs a sequence coded as a series of events in cover property

**URL:** <https://verificationacademy.com/forums/t/is-there-any-difference-in-a-sequence-coded-as-transition-of-coverpoint-vs-a-sequence-coded-as-a-series-of-events-in-cover-property/31350>\
**Category:** Coverage\
**Tags:** coverage-transition-bins, Coverage, coverage-sequence\
**Created:** [December 24, 2015, 6:01am UTC](https://verificationacademy.com/forums/t/is-there-any-difference-in-a-sequence-coded-as-transition-of-coverpoint-vs-a-sequence-coded-as-a-series-of-events-in-cover-property/31350 "2015-12-24T06:01:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![priyank87](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@priyank87](https://verificationacademy.com/forums/u/priyank87)\
**Post date:** [December 24, 2015, 6:01am UTC](https://verificationacademy.com/forums/t/is-there-any-difference-in-a-sequence-coded-as-transition-of-coverpoint-vs-a-sequence-coded-as-a-series-of-events-in-cover-property/31350/1 "2015-12-24T06:01:29Z")

</div>

Hi,

I have a question regarding transition sequence and sequence used in cover property. Consider the following 2 examples – the intention for both of them is to cover a sequence of events.

SigA should transition the following way :- 0-\>1-\>0-\>1

Using covergroup:

```verilog
covergroup sig_cov @(posedge clk);
                sigA_tran : coverpoint sigA {
                                bins hi_lo_hi_seq = 0 => 1[=1] => 0[=1] => 1
                }
endgroup

```

Using sequence and cover property

```verilog
sequence sigA_cov;
                @(posedge clk)
                ($rose(sigA) ##1 $fell(sigA) ##1 $rose(sigA))
endsequence

```

Won’t the above 2 sequences cover the same sigA transition? Is there anything different in using one vs other?(from covering the transition point of view)

---

<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 24, 2015, 3:38pm UTC](https://verificationacademy.com/forums/t/is-there-any-difference-in-a-sequence-coded-as-transition-of-coverpoint-vs-a-sequence-coded-as-a-series-of-events-in-cover-property/31350/2 "2015-12-24T15:38:50Z")

</div>

Not much difference other than $rose has the potential to become true on the first clock cycle, whereas the covergroup transition bin requires that sigA start at 0. Also, $rose is true for an X-\>1 transition.

If you coded the sequence as

```verilog
sequence sigA_cov;
                @(posedge clk)
                !sigA ##1 sigA ##1 !sigA ##1 sigA
endsequence

```

Then they would be exactly the same.

---

<div class="post-metadata">

**Author:** ![priyank87](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/p/b9e5f3/32.png) [@priyank87](https://verificationacademy.com/forums/u/priyank87)\
**Post date:** [December 24, 2015, 4:53pm UTC](https://verificationacademy.com/forums/t/is-there-any-difference-in-a-sequence-coded-as-transition-of-coverpoint-vs-a-sequence-coded-as-a-series-of-events-in-cover-property/31350/3 "2015-12-24T16:53:52Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/is-there-any-difference-in-a-sequence-coded-as-transition-of-coverpoint-vs-a-sequence-coded-as-a-series-of-events-in-cover-property/31350/2):_

Thanks, Dave!  
Also, the non-consecutive repetition would modify the transition meaning in the bins, isn’t it? Essentially, the bin would mean that the transition **need not** happen at consecutive sampling points. The sequence then can mean that there can be multiple sample points between each transition and after.

In that sense, the new sequence you mentioned would differ, as we now have a strict rule that transition should happen at consecutive sample points - am I right?

How if I modify the sequence you mentioned as :-

```verilog
sequence sigA_cov;
                @(posedge clk)
                !sigA ##1 sigA[->1] ##1 !sigA[->1] ##1 sigA
endsequence

```
