# Assertion

**URL:** <https://verificationacademy.com/forums/t/assertion/42699>\
**Category:** SystemVerilog\
**Tags:** systemverilogassertionSVA, SystemVerilog, sequence, Package, assertion\
**Created:** [November 16, 2023, 12:25pm UTC](https://verificationacademy.com/forums/t/assertion/42699 "2023-11-16T12:25:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MICRO\_91](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/5f9b8f/32.png) [@MICRO\_91](https://verificationacademy.com/forums/u/MICRO_91)\
**Post date:** [November 16, 2023, 6:15pm UTC](https://verificationacademy.com/forums/t/assertion/42699/2 "2023-11-16T18:15:59Z")

</div>

_In reply to [Amruthabmanigar](https://verificationacademy.com/forums/t/assertion/42699):_

Syntax 16-14—Variable assignment syntax of the LRM says:

```verilog

sequence_expr ::= // from A.2.10
...
| ( sequence_expr {, sequence_match_item} ) [sequence_abbrev]
...
sequence_match_item ::=
operator_assignment
| inc_or_dec_expression
...

```

Variable ‘v’ in your code is a local variable which is dynamic in nature.  
If one wants to initialize a local variable the LRM syntax above tells us that it needs to be associated with a sequence\_expr. The local variable initialization is done only when the sequence matches.  
In your code ‘1’ is the sequence\_expression which means it will always match. As a result on each attempt of sequence dynamic\_repeat , local variable ‘v’ is initialized with value of ‘count’ to the parameterized sequence.

---

_[View the full topic](https://verificationacademy.com/forums/t/assertion/42699)._
