# 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:** 14

<div class="post-metadata">

**Author:** ![atanu.biswas](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/9de0a6/32.png) [@atanu.biswas](https://verificationacademy.com/forums/u/atanu.biswas)\
**Post date:** [November 25, 2019, 6:36am UTC](https://verificationacademy.com/forums/t/assigning-a-bit-in-sv-assertion/36810/14 "2019-11-25T06:36:12Z")

</div>

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

Hi Ben,

Thanks a lot. That really helped. I tried it out and its working perfectly fine.

Also I did a small experiment. I write ##0 instead of |-\> after $rose as shown below:

property data\_check;  
@(clk) @rose(write\_cycle) ##0  
first\_match(##[1:5] signal\_to\_check == write\_data) #-#  
((signal\_to\_check == write\_data) until $rose(write\_cycle));  
endproperty

Ended up with Assertion errors at every point of time. Why does it happen? Also I need some fundamental understanding regarding the working of |-\> , ##0 and #-#. Is there any relevant article for this? That shall be of great help for me.

---

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