# Assigning a bit in SV Assertion

**URL:** <https://verificationacademy.com/forums/t/assigning-a-bit-in-sv-assertion/36810>\
**Category:** SystemVerilog\
**Tags:** Assertion-Based-Verification, assert-property, SystemVerilog, assertion\
**Created:** [November 16, 2019, 8:23am UTC](https://verificationacademy.com/forums/t/assigning-a-bit-in-sv-assertion/36810 "2019-11-16T08:23:54Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![atanubiswas](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/a183cd/32.png) [@atanubiswas](https://verificationacademy.com/forums/u/atanubiswas)\
**Post date:** [December 16, 2019, 9:17am UTC](https://verificationacademy.com/forums/t/assigning-a-bit-in-sv-assertion/36810/19 "2019-12-16T09:17:08Z")

</div>

_In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/assigning-a-bit-in-sv-assertion/36810/18):_

> _In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/assigning-a-bit-in-sv-assertion/36810/18):_  
> To avoid vacuity after the rise of the write, use the followed-by operator that represents a sequence followed by a property

```verilog

// another option 
property data_check;
@(clk) @rose(write_cycle) |->
first_match(##[1:5] signal_to_check == write_data) ##1
((signal_to_check == write_data)[*1:$] ##1 $rose(write_cycle));
endproperty

```

I have one more query. I am using the above mentioned assertion. I am asserting the property as below:

assert property (data\_check) $display (“Assertion Pass”); else error

But the pass statement is not showing up on each and every clock edge at which the assertion passes. Instead it shows up only once. Dont know the reason for this.

---

_[View the full topic](https://verificationacademy.com/forums/t/assigning-a-bit-in-sv-assertion/36810)._
