# For below Assert property i'm getting offending error, can anyone help me with this

**URL:** <https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946>\
**Category:** SystemVerilog\
**Tags:** assertion\
**Created:** [April 17, 2024, 12:56pm UTC](https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946 "2024-04-17T12:56:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![UvmSv](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/u/b487fb/32.png) [@UvmSv](https://verificationacademy.com/forums/u/UvmSv)\
**Post date:** [April 17, 2024, 12:56pm UTC](https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946/1 "2024-04-17T12:56:15Z")

</div>

```auto
property chk_in_st(int);
@(posedge assert_clk) disable iff (!rst_n)
  !hold_ack_n & $rose (int_flag[int])|-> in_st throughout(int_flag[int]##[0:$] hold_ack_n);
endproperty

F0:assert property(chk_in_st(0)) else assert_flag = 1;
:
: 
F45: assert property(chk_in_st(45)) else assert_flag = 1;

```

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [April 17, 2024, 1:15pm UTC](https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946/2 "2024-04-17T13:15:20Z")

</div>

The argument in the property does not accept a data type. You have to pass a variable.

---

<div class="post-metadata">

**Author:** ![UvmSv](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/u/b487fb/32.png) [@UvmSv](https://verificationacademy.com/forums/u/UvmSv)\
**Post date:** [April 17, 2024, 1:21pm UTC](https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946/3 "2024-04-17T13:21:40Z")

</div>

Hi chr\_sue-san, actually int having 48 bit width so for all 0 to 45 i’m checking interrupt property.  
but when i’m checking at 46 and 47 position getting this offending error.

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [April 17, 2024, 4:23pm UTC](https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946/4 "2024-04-17T16:23:19Z")

</div>

Please [format your code](https://markdown-it.github.io/) making your code easier for others to read. I have done that for you. SystemVerilog code does not always render correctly without it.

We are confused because **int** is a reserved keyword for a datatype. I think you meant to use some name like **i**.

You also need to explain what an “offending error” means. Is it a compiler error message or an assertion error. Please show us, and show us declarations for all variables. Better would be a [minimal, complete reproducible examples](https://stackoverflow.com/help/minimal-reproducible-example)

---

<div class="post-metadata">

**Author:** ![UvmSv](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/u/b487fb/32.png) [@UvmSv](https://verificationacademy.com/forums/u/UvmSv)\
**Post date:** [April 18, 2024, 12:07pm UTC](https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946/5 "2024-04-18T12:07:00Z")

</div>

Okay. I got your point. Actually I’m writing at reserved bit so that’s the reason I’m seeing offending error. It’s resolved.

---

<div class="post-metadata">

**Author:** ![DP\_rentikota](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/59ef9b/32.png) [@DP\_rentikota](https://verificationacademy.com/forums/u/DP_rentikota)\
**Post date:** [April 23, 2024, 5:58am UTC](https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946/6 "2024-04-23T05:58:42Z")

</div>

Can i access the global variable which is declared in the assertion module in the property and endproperty ,if yes then can i access the config class variables in the property and endproperty.

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [April 23, 2024, 4:00pm UTC](https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946/7 "2024-04-23T16:00:24Z")

</div>

This would have been better to be asked as a new question as it is unrelated to the original post.

You can access static variables (globals) from a property, but not non-static class members.

---

<div class="post-metadata">

**Author:** ![DP\_rentikota](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/d/59ef9b/32.png) [@DP\_rentikota](https://verificationacademy.com/forums/u/DP_rentikota)\
**Post date:** [April 26, 2024, 12:19am UTC](https://verificationacademy.com/forums/t/for-below-assert-property-im-getting-offending-error-can-anyone-help-me-with-this/46946/8 "2024-04-26T00:19:12Z")

</div>

Thank you Dave it’s working.
