# \#systemverilog-local-variables-assertion

**URL:** https://verificationacademy.com/forums/tag/systemverilog-local-variables-assertion/4697.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Can i save variables when assertion is triggered and then use them to check the consequence?](https://verificationacademy.com/forums/t/can-i-save-variables-when-assertion-is-triggered-and-then-use-them-to-check-the-consequence/38355)

<div class="topic-metadata">

**Author:** [@shahparth08](https://verificationacademy.com/forums/u/shahparth08)\
**Replies:** 3\
**Last updated:** [November 18, 2020, 9:31pm UTC](https://verificationacademy.com/forums/t/can-i-save-variables-when-assertion-is-triggered-and-then-use-them-to-check-the-consequence/38355 "2020-11-18T21:31:01Z")

</div>

what i am trying to achieve is property req\_to\_out\_chk; logic \[19:0\] addr\_l; logic \[11:0\] apid\_l; @(posedge CLK) disable iff(~resetb) ((start === 1'b1),addr\_l=reg\_addr,apid\_l=ap\_id) ##1 @(posedge CLK\_OUT) (~resetb) \[…

---

## [Can I pass a local variable to an assertion (not seq or prop)?](https://verificationacademy.com/forums/t/can-i-pass-a-local-variable-to-an-assertion-not-seq-or-prop/29595)

<div class="topic-metadata">

**Author:** [@mchal9thou](https://verificationacademy.com/forums/u/mchal9thou)\
**Replies:** 3\
**Last updated:** [June 17, 2014, 4:36pm UTC](https://verificationacademy.com/forums/t/can-i-pass-a-local-variable-to-an-assertion-not-seq-or-prop/29595 "2014-06-17T16:36:26Z")

</div>

Based on my reading and failed attempts I’m assuming the answer is no. Please correct me if I’m wrong.
