# Interview Questions on Assertions

**URL:** <https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346>\
**Category:** SystemVerilog\
**Tags:** UVM, SystemVerilog\
**Created:** [November 15, 2020, 11:16am UTC](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346 "2020-11-15T11:16:38Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![user49](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/user49/32/4533_2.png) [@user49](https://verificationacademy.com/forums/u/user49)\
**Post date:** [October 12, 2022, 9:27am UTC](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346/12 "2022-10-12T09:27:37Z")

</div>

_In reply to [vk7715](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346/11):_  
SVA allows an expression or a sequence to be repeated. For example:  
b[\*2] is equivalent to b ##1 b  
(a ##1 b)[\*2] is equivalent to (a ##1 b) ##1(a ##1 b).

the expression can be a variable (like “a”, or it can be a constant like 1’b1 or just 1  
Thus 1[\*2] is same as 1 ##1 1  
same as true ##1 true,

(seq1 within seq2) is equivalent to: ((1[\*0:] ##1 seq1 ##1 1[\*0:]) intersect seq2 )  
COuld have written this as  
(seq1 within seq2) is equivalent to: ((##[0:] seq1 ##[0:]) intersect seq2 )

---

_[View the full topic](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346)._
