# What is the difference between $setup and $removal?

**URL:** <https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, timing-checks\
**Created:** [June 12, 2018, 8:47pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565 "2018-06-12T20:47:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![agstod](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@agstod](https://verificationacademy.com/forums/u/agstod)\
**Post date:** [June 12, 2018, 8:47pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565/1 "2018-06-12T20:47:37Z")

</div>

What is the difference between $setup and $removal?

According to LRM, they both use the reference\_event as the the timecheck event and the data\_event as the timestamp event. Their violations follow the same pattern:

(beginning of time window) \< (timestamp time) \< (end of time window)

So what is the difference?

A similar question could be asked about $hold and $recovery…

---

<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:** [June 12, 2018, 10:27pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565/2 "2018-06-12T22:27:52Z")

</div>

_In reply to [ce\_2015](https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565):_

The difference is in terminology.

With $setup/$hold, the clock is the reference event and data cannot change inside of a time window around the reference.

With $removal/$recovery, the set/reset is the reference event and the clock cannot change inside of a time window around the reference.

---

<div class="post-metadata">

**Author:** ![agstod](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/e495f1/32.png) [@agstod](https://verificationacademy.com/forums/u/agstod)\
**Post date:** [June 12, 2018, 10:46pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565/3 "2018-06-12T22:46:57Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565/2):_

> _In reply to [ce\_2015](https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565/2):_  
> The difference is in terminology.  
> With $setup/$hold, the clock is the reference event and data cannot change inside of a time window around the reference.  
> With $removal/$recovery, the set/reset is the reference event and the clock cannot change inside of a time window around the reference.

Having said that, I could theoretically put a clock signal as the reference event in $removal/$recovery and the set/reset as the data event and still produce the same results as I would using $setup/$hold, correct?

I would just lose the semantic value offered by using the more appropriate name.

---

<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:** [June 12, 2018, 10:56pm UTC](https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565/4 "2018-06-12T22:56:36Z")

</div>

_In reply to [ce\_2015](https://verificationacademy.com/forums/t/what-is-the-difference-between-setup-and-removal/34565/3):_

Correct. You could say the same thing about the difference between $setup & $hold.
