# System verilog assertion

**URL:** <https://verificationacademy.com/forums/t/system-verilog-assertion/35189>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, system-verilog-assertion-SVA\
**Created:** [October 16, 2018, 5:50am UTC](https://verificationacademy.com/forums/t/system-verilog-assertion/35189 "2018-10-16T05:50:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RonakBhatt](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/r/f4b2a3/32.png) [@RonakBhatt](https://verificationacademy.com/forums/u/RonakBhatt)\
**Post date:** [October 16, 2018, 10:00am UTC](https://verificationacademy.com/forums/t/system-verilog-assertion/35189/2 "2018-10-16T10:00:13Z")

</div>

SystemVerilog doesn’t allow direct assignment to local property variable inplace of property expression.

Means writing statement directly like v = $realtime is invalid syntax, proper syntax is to write a expression with statement, and when expression becomes true it will sample as per that statement.

In your case:

```verilog

@(posedge local_clk1) disable iff ((!enable)|(!reset)) (enable, v=$realtime) |=> ((($realtime-v)/2)==TON_local_clk1);

```

or

```verilog

@(posedge local_clk1) disable iff ((!enable)|(!reset)) (1, v=$realtime) |=> ((($realtime-v)/2)==TON_local_clk1);

```

Above both are same in your case.

---

_[View the full topic](https://verificationacademy.com/forums/t/system-verilog-assertion/35189)._
