# Difference between -\> and =\> in assertions

**URL:** <https://verificationacademy.com/forums/t/difference-between-and-in-assertions/48906>\
**Category:** SystemVerilog\
**Created:** [November 7, 2024, 1:28pm UTC](https://verificationacademy.com/forums/t/difference-between-and-in-assertions/48906 "2024-11-07T13:28:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avii](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@Avii](https://verificationacademy.com/forums/u/Avii)\
**Post date:** [November 7, 2024, 1:28pm UTC](https://verificationacademy.com/forums/t/difference-between-and-in-assertions/48906/1 "2024-11-07T13:28:49Z")

</div>

difference between : sig\_a - \> ##2 sig\_b and sig\_a = \> ##2 sig\_b in systemverilog assertions

---

<div class="post-metadata">

**Author:** ![Mohan\_Kishore](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/b9bd4f/32.png) [@Mohan\_Kishore](https://verificationacademy.com/forums/u/Mohan_Kishore)\
**Post date:** [November 7, 2024, 2:00pm UTC](https://verificationacademy.com/forums/t/difference-between-and-in-assertions/48906/2 "2024-11-07T14:00:21Z")

</div>

→ immediately evaluated  
=\> next clock cycle evaluated  
=\> is equal to -\>##1

u can say sig\_a=\>##2 sig\_b as sig\_a -\>##3 sig\_b

---

<div class="post-metadata">

**Author:** ![Avii](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/a4c791/32.png) [@Avii](https://verificationacademy.com/forums/u/Avii)\
**Post date:** [November 7, 2024, 2:11pm UTC](https://verificationacademy.com/forums/t/difference-between-and-in-assertions/48906/3 "2024-11-07T14:11:37Z")

</div>

To write a constraint that sig\_a goes high, sig\_b must follow within 3 clk cycles.

sig\_a |-\> [1:3] sig\_b; // is this correct

---

<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 7, 2024, 4:38pm UTC](https://verificationacademy.com/forums/t/difference-between-and-in-assertions/48906/4 "2024-11-07T16:38:43Z")

</div>

Be careful with your syntax

- `A -> B ` is a logical implication operator equivalent to `!A || B`
- `A |-> B` is an overlapping implication property operator. When A and B are both boolean expressions, it behaves the same as the logical operator, except that !A is considered a _vacuous_ success.
- `A |=> B` is non-overlapping implication property operator. It is equivalent to `A|-> ##1 B`. We recommend using the latter for consistency and clarity.
- `A -> ##[1:3] B` means B must follow between 1 and 3 cycles.

---

<div class="post-metadata">

**Author:** ![LFT](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/l/34f0e0/32.png) [@LFT](https://verificationacademy.com/forums/u/LFT)\
**Post date:** [October 18, 2025, 9:29am UTC](https://verificationacademy.com/forums/t/difference-between-and-in-assertions/48906/5 "2025-10-18T09:29:58Z")

</div>

Hi Dave,

> [@dave\_59](#):
>
> - `A |=> B` is non-overlapping implication property operator. It is equivalent to `A|-> ##1 B`.

I believe this is incorrect. The `##1 1` should be part of antecedent in the equivalent expression

As per LRM Section **16.12.7 Implication**

```verilog
sequence_expr |=> property_expr
is equivalent to the following:
sequence_expr ##1 `true |-> property_expr

```

---

<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:** [October 19, 2025, 3:10pm UTC](https://verificationacademy.com/forums/t/difference-between-and-in-assertions/48906/6 "2025-10-19T15:10:42Z")

</div>

It’s true that there can be a subtle difference in some cases. However, in most instances, there’s no difference.
