# Interview Questions on Assertions

**URL:** <https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346>\
**Category:** SystemVerilog\
**Tags:** SystemVerilog, UVM\
**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:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![Hayat](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/f4b2a3/32.png) [@Hayat](https://verificationacademy.com/forums/u/Hayat)\
**Post date:** [February 22, 2024, 6:38am UTC](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346/21 "2024-02-22T06:38:00Z")

</div>

Hi Ben, thanks for writing the answers in a very easy SVA. Can we write the Q5 assertion this way?

```auto
ap5_aa_nob: assert property(@ (posedge clk) 
($rose(a) && (state == ACTIVE1))[->2] intersect !b[*1:$] |-> ##[1:3] state == START;

```

---

<div class="post-metadata">

**Author:** ![shubham1404](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/35a633/32.png) [@shubham1404](https://verificationacademy.com/forums/u/shubham1404)\
**Post date:** [August 20, 2024, 6:28pm UTC](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346/22 "2024-08-20T18:28:15Z")

</div>

Hi @subbireddy can you please share remaining 21 questions.

---

<div class="post-metadata">

**Author:** ![Shilpi1](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@Shilpi1](https://verificationacademy.com/forums/u/Shilpi1)\
**Post date:** [September 13, 2024, 6:20pm UTC](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346/23 "2024-09-13T18:20:16Z")

</div>

Hi Ben,

I have some doubts for the solutions for 7th and 8th:

1. We use within operator to see a does not go high, but does within operator does not guarantee for the statement from the cycle after sig\_b until the cycle before the sigc\_c as the sequence on lhs of within can fall anywhere between start and end of rhs. Also, can we use until for this ?

```json
$rose(b) |-> (!a until (b[->1) ##[1:$] c[->1]))

```

1. In sol-8, what does 1’b1 intersect a[-\>1] mean and does b[-\>1] and a[-\>1] start and end at same time ?

2. Will this work for condition mentioned in q-5 ?

```json
$rose(a) ##0 !b throughout (a && (state==active_1))[->2] |-> ##[1:3] start

```

Thanks in advance

---

<div class="post-metadata">

**Author:** ![whizclips](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/whizclips/32/2813_2.png) [@whizclips](https://verificationacademy.com/forums/u/whizclips)\
**Post date:** [March 22, 2025, 7:56am UTC](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346/24 "2025-03-22T07:56:27Z")

</div>

Hi, Can you provide all 30 assertion questions? It will be a very good exercise for practice.

---

<div class="post-metadata">

**Author:** ![gundum](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/g/b782af/32.png) [@gundum](https://verificationacademy.com/forums/u/gundum)\
**Post date:** [June 18, 2025, 6:40pm UTC](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346/25 "2025-06-18T18:40:42Z")

</div>

Question: Every sig\_a must eventually be acknowledged by sig\_b, unless sig\_c appears.

Hello,

for the question above, is the below valid? I understand intersect should have same end point for both sequences/events, so i want to know if when b becomes high once, the assertion passes or not?  
sig\_a |-\> sig\_b[-\>1] intersect 1[\*0:$] !c

---

<div class="post-metadata">

**Author:** ![arshi582](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/a/c77e96/32.png) [@arshi582](https://verificationacademy.com/forums/u/arshi582)\
**Post date:** [June 18, 2025, 6:56pm UTC](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346/26 "2025-06-18T18:56:14Z")

</div>

@gundum , wouldn’t a simple solution be using or operator ?

```auto
sig_a |-> sig_b[->1] or sig_c[->1];

```

---

<div class="post-metadata">

**Author:** ![gundum](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/g/b782af/32.png) [@gundum](https://verificationacademy.com/forums/u/gundum)\
**Post date:** [June 18, 2025, 7:10pm UTC](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346/27 "2025-06-18T19:10:56Z")

</div>

yeah I agree, simple and clean  
trying to understand the intersect operator, does the above property mentioned by me works?

[Previous page](https://verificationacademy.com/forums/t/interview-questions-on-assertions/38346.md?page=1)
