# Checking clock period using system verilog assertion

**URL:** <https://verificationacademy.com/forums/t/checking-clock-period-using-system-verilog-assertion/30272>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, assertion\
**Created:** [January 7, 2015, 12:30pm UTC](https://verificationacademy.com/forums/t/checking-clock-period-using-system-verilog-assertion/30272 "2015-01-07T12:30:57Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![silverace99](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/ccd318/32.png) [@silverace99](https://verificationacademy.com/forums/u/silverace99)\
**Post date:** [August 10, 2017, 9:48pm UTC](https://verificationacademy.com/forums/t/checking-clock-period-using-system-verilog-assertion/30272/18 "2017-08-10T21:48:57Z")

</div>

Hi I know this is an old thread, but I’m quite interested in the OP’s assertion code as I’m trying to write clock assertions as well. I have two questions:

1. In the property, the OP has written this:

```verilog
(('1,current_time=$realtime) |=>(clk_period==$realtime-current_time));

```

What is the '1 at the beginning of the statement for? What does it achieve?

1. Let’s say I want to pull out the value of $realtime-current\_time into an error message if this property catches a failure. Is there a way I can pull out the value of a variable inside a property? If not, what are my options?

Thanks!

---

_[View the full topic](https://verificationacademy.com/forums/t/checking-clock-period-using-system-verilog-assertion/30272)._
