# Understanding the throughout SVA

**URL:** <https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326>\
**Category:** SystemVerilog\
**Tags:** SVA-Assertion, assertion\
**Created:** [February 28, 2024, 1:37am UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326 "2024-02-28T01:37:15Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![cecil](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/eb8c5e/32.png) [@cecil](https://verificationacademy.com/forums/u/cecil)\
**Post date:** [February 28, 2024, 1:37am UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/1 "2024-02-28T01:37:15Z")

</div>

Hi everyone,  
I’m a beginner in SVA and I’m having some trouble understanding the throughout assertion. It’s specified in the LRM that it uses the intersect assertion in the following manner:

```auto
(Expression) [*0:$] intersect SequenceExpr

```

I’m confused on why is it `[*0:$]` and not `[*1:$]`, because wouldn’t the Expression evaluate to true everytime since its lower bound is 0?

Thanks,  
Cecil

---

<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:** [February 28, 2024, 6:44am UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/2 "2024-02-28T06:44:32Z")

</div>

See my paper: Reflections on Users’ Experiences with SVA, part 2

> **[Reflections on Users’ Experiences with SVA - Part II](https://verificationacademy.com/verification-horizons/july-2022-volume-18-issue-2/reflections-on-users-experiences-with-sva-part-2)**
>
> During my years of contributions to the Verification Academy SystemVerilog Forum, I have seen many trends in real users’ difficulties in the application of assertions, and misunderstandings of how SVA works. In Part 1 of this article, I addressed the...

Addresses the usage of these four relationship operators: throughout, until, intersect, implies

Ben Cohen [ben@systemverilog.us](mailto:ben@systemverilog.us)  
Link to the list of papers and books that I wrote, many are now donated.  
[https://systemverilog.us/vf/Cohen\_Links\_to\_papers\_books.pdf](https://systemverilog.us/vf/Cohen_Links_to_papers_books.pdf)

---

<div class="post-metadata">

**Author:** ![Have\_A\_Doubt](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Have\_A\_Doubt](https://verificationacademy.com/forums/u/Have_A_Doubt)\
**Post date:** [February 28, 2024, 8:47am UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/3 "2024-02-28T08:47:06Z")

</div>

Hi Ben,  
I was trying the following SVA from your paper

```auto
ap_sig1_stable_intersect_sig2 : assert property(@(posedge clk)   
     $rose(sig2) |=> ($stable(sig1)[*0:$] ) intersect !sig2[->1]);

```

On one of the tools I observe compilation error ::

> A sequence that is used as property must be non-degenerate and admit no empty match

LRM section 16.9.9 mentions

```auto
sequence_expr ::= 
...
| expression_or_dist throughout sequence_expr

The construct exp throughout seq is an abbreviation for the following:
(exp) [*0:$] intersect seq

```

As Cecil pointed shouldn’t the LHS sequence be [\*1:$] ] ?  
For the intersect operator to succeed it’s necessary that the LHS sequence matches ,  
wouldn’t this require [\*1] ?

---

<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:** [February 28, 2024, 3:17pm UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/4 "2024-02-28T15:17:51Z")

</div>

You are absolutely correct!  
My error, possibly not detected by a tool when I wrote the paper.  
Thanls for pointing this out.  
Ben

---

<div class="post-metadata">

**Author:** ![Have\_A\_Doubt](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Have\_A\_Doubt](https://verificationacademy.com/forums/u/Have_A_Doubt)\
**Post date:** [February 28, 2024, 3:23pm UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/5 "2024-02-28T15:23:54Z")

</div>

Ben,  
**This would also mean that correction is required in Section 16.9.9 of the LRM , right ?**

```auto
The construct exp throughout seq is an abbreviation for the following:
(exp) [*0:$] intersect seq

```

> [\*0] in the above line should be corrected to [\*1]

```auto
The construct exp throughout seq is an abbreviation for the following:
(exp) [*1:$] intersect seq

```

---

<div class="post-metadata">

**Author:** ![cecil](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/eb8c5e/32.png) [@cecil](https://verificationacademy.com/forums/u/cecil)\
**Post date:** [February 28, 2024, 5:18pm UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/6 "2024-02-28T17:18:25Z")

</div>

Yes, that is exactly what I want to know

---

<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:** [February 29, 2024, 12:16am UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/7 "2024-02-29T00:16:59Z")

</div>

I had a discussion with a colleague on our 1800 SVA committee.

```auto
sequence_expr ::= 
...
| expression_or_dist throughout sequence_expr

The construct exp throughout seq is an abbreviation for the following:
(exp) [*0:$] intersect seq

```

The intersection need not have an empty match. It is not the components but the sequence resulting from the intersection.  
Bottom line, no change to

```auto
LRM section 16.9.9 mentions

sequence_expr ::= 
...
| expression_or_dist throughout sequence_expr

The construct exp throughout seq is an abbreviation for the following:
(exp) [*0:$] intersect seq

```

I noticed from edaplayground that some tools (not the latest ones there) complain about the empty while others do not.  
This is the way it is!  
Ben  
match while others do not

---

<div class="post-metadata">

**Author:** ![cecil](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/eb8c5e/32.png) [@cecil](https://verificationacademy.com/forums/u/cecil)\
**Post date:** [February 29, 2024, 3:36am UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/8 "2024-02-29T03:36:24Z")

</div>

Thanks a lot for your response. Could you please elaborate on the following statement, I’m not able to understand it clearly.

> [@user49](#):
>
> The intersection need not have an empty match. It is not the components but the sequence resulting from the intersection.

Thanks,  
Cecil

---

<div class="post-metadata">

**Author:** ![Have\_A\_Doubt](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/51bf81/32.png) [@Have\_A\_Doubt](https://verificationacademy.com/forums/u/Have_A_Doubt)\
**Post date:** [February 29, 2024, 8:36am UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/9 "2024-02-29T08:36:18Z")

</div>

> [@user49](#):
>
> I noticed from edaplayground that some tools (not the latest ones there) complain about the empty while others do not.

I tested the following on licensed tools at work ( Questa **2023.1** ,xcelium **23.03.07** , VCS **U-2023.03-SP2** )

```auto
 ap1:assert property( @(posedge clk) $rose(sig1) |-> sig1 throughout $rose(sig2)[->1] ) $display("T:%0t ap1 Passes",$time);

 ap2:assert property( @(posedge clk) $rose(sig1) |-> sig1[*0:$] intersect $rose(sig2)[->1] ) $display("T:%0t ap2 Passes",$time);

```

Only VCS throws a compilation error with **ap2**

Assuming $rose(sig1) and $rose(sig2) are true on same clock ::

For throughout operator to succeed the lhs expr must match on the clock that rhs sequence matches.  
Hence I still believe that the equivalent expression using intersect should have [\*1:$] for the lhs expr

---

<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:** [February 29, 2024, 8:13pm UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/10 "2024-02-29T20:13:44Z")

</div>

I  
I honestly think that this is a boderline issue, and as you experienced,  
there is disagreement among vendors on how the s[\*0] is handled.  
1800 i s clear though:  
Any sequence that is used as a property shall be nondegenerate and  
shall not admit any empty match.

```
https://www.edaplayground.com/x/GWjF
( 1 |-> s1[*0:1] intersect 1[*1]) // s1==1
The assertion passes with 2 vndors. 
s1[*0:1] intersect 1[*1]) // same as 
  s1[*0] intersect 1[*1]) or // fail
  s1[*1] intersect 1[*1]) // pass if s1==1
Thus, one could interpret the s1[*0] as non-essential or immaterial 
Yet, with 

```

[SVA Dynamic Variable until/until\_with usage(2) - EDA Playground](https://www.edaplayground.com/x/tDtd)  
( 1 |-\> s1[\*0] intersect 1[\*0]) // s1==1  
s1[\*0:1] intersect 1[\*0]) // same as  
s1[\*0] intersect 1[\*0]) or // fail

```
  BTW, I like your posts challenging 1800. 
  In thhe furure, please provide the link toeda and use 
  waveforms (instead of $display) as it is easier to debug. 
  In the action block, increment the pass or fail variables of type int. 
    e.g, assert property(t) p1++; else f1++; 

```

Thanks,  
Ben Cohen  
[Ben@systemverilog.us](mailto:Ben@systemverilog.us)  
Link to the list of papers and books that I wrote, many are now donated.

> **[Cohen\_Links\_to\_papers\_books.pdf](https://systemverilog.us/vf/Cohen_Links_to_papers_books.pdf)**
>
> 141.16 KB

---

<div class="post-metadata">

**Author:** ![cecil](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/eb8c5e/32.png) [@cecil](https://verificationacademy.com/forums/u/cecil)\
**Post date:** [February 29, 2024, 11:28pm UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/11 "2024-02-29T23:28:33Z")

</div>

Thank you for the clarification

---

<div class="post-metadata">

**Author:** ![LFT](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/l/34f0e0/32.png) [@LFT](https://verificationacademy.com/forums/u/LFT)\
**Post date:** [October 20, 2025, 3:57pm UTC](https://verificationacademy.com/forums/t/understanding-the-throughout-sva/46326/12 "2025-10-20T15:57:05Z")

</div>

Hi Ben,

As you mentioned consequent `seq_expr[*0:$] intersect seq2` is equivalent to

```verilog
( seq_expr[*0] intersect seq2 ) or ( seq_expr[*1] intersect seq2 ) or 
( seq_expr[*2] intersect seq2 ) or ( seq_expr[*3] intersect seq2 ) or
 ... or ( seq_expr[*N] intersect seq2 )

```

**What would be the equivalent expression for sub sequence** `seq_expr[*0] intersect seq2` **?**

I am confused between the following two possibilities

(a) No Match i.e 0 i.e impossible to match **[OR]** (b) Empty Match

**The consequent would be legal for (a) whereas it would be illegal for (b) [for reasons similar to b[\*0:3] being illegal as consequent ]**
