# What should be my approach verifying time constraints in the signals of a interface

**URL:** <https://verificationacademy.com/forums/t/what-should-be-my-approach-verifying-time-constraints-in-the-signals-of-a-interface/34237>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, assertion, timing-control, timing-checks\
**Created:** [March 22, 2018, 10:58am UTC](https://verificationacademy.com/forums/t/what-should-be-my-approach-verifying-time-constraints-in-the-signals-of-a-interface/34237 "2018-03-22T10:58:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nikhil\_c](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/n/aca169/32.png) [@nikhil\_c](https://verificationacademy.com/forums/u/nikhil_c)\
**Post date:** [March 26, 2018, 10:00am UTC](https://verificationacademy.com/forums/t/what-should-be-my-approach-verifying-time-constraints-in-the-signals-of-a-interface/34237/2 "2018-03-26T10:00:50Z")

</div>

_In reply to [aarelovich](https://verificationacademy.com/forums/t/what-should-be-my-approach-verifying-time-constraints-in-the-signals-of-a-interface/34237):_

You can use assertions for this, I can give you a small example:

```verilog

  property p_check_hole_time;
   time t1, t2;
   @(posedge clk) (1, t1 = $time) |-> @(posedge clk) (1, t2 = $time) ##0 ((t1 - t2) == 2ns, pass_msg);

  endproperty

```

Here if you can see I have taken 2 variables t1, t2 inside a assertion and am using to store the time. You can it in a same way in writing a assertion.  
Note: this is just a skeleton and its not compile free.

---

_[View the full topic](https://verificationacademy.com/forums/t/what-should-be-my-approach-verifying-time-constraints-in-the-signals-of-a-interface/34237)._
