# $fell issue in sva

**URL:** <https://verificationacademy.com/forums/t/fell-issue-in-sva/37984>\
**Category:** SystemVerilog\
**Tags:** system-verilog-system-verilog-assertions, SystemVerilog, fell\
**Created:** [August 23, 2020, 10:24am UTC](https://verificationacademy.com/forums/t/fell-issue-in-sva/37984 "2020-08-23T10:24:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineet\_sharma](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/v/a183cd/32.png) [@vineet\_sharma](https://verificationacademy.com/forums/u/vineet_sharma)\
**Post date:** [August 23, 2020, 10:24am UTC](https://verificationacademy.com/forums/t/fell-issue-in-sva/37984/1 "2020-08-23T10:24:52Z")

</div>

Hi,

I have written an sva.

code snippet:

```verilog
always@(posedge clk)begin
p1: assert property(
disable iff(rst_n!==1)
$fell(a) |-> ##[1:$] (b==1'b0) ##[1:$] (c==1'b0))
else

begin
//error code
end
end

```

What i observe in simulation, that when rst\_n goes 1, during that time assertion is failing even though ‘signal a’ is not changing during several cycle before and after of rst\_n =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:** [August 23, 2020, 5:32pm UTC](https://verificationacademy.com/forums/t/fell-issue-in-sva/37984/2 "2020-08-23T17:32:07Z")

</div>

_In reply to [vineet\_sharma](https://verificationacademy.com/forums/t/fell-issue-in-sva/37984):_  
I do not see what you are experiencing. Modify this code and demonstrate your case.  
// [Edit code - EDA Playground](https://edaplayground.com/x/5m_Y)  
// missed the $sampled(b)

> **[EDA Playground](https://edaplayground.com/x/6Ah5#)**
>
> Edit, save, simulate, synthesize SystemVerilog, Verilog, VHDL and other HDLs from your web browser.

```verilog

import uvm_pkg::*; `include "uvm_macros.svh" 
module top; 
    bit clk, a, b, c, rst_n;  
    default clocking @(posedge clk); endclocking
    initial forever #10 clk=!clk;   
     
    always@(posedge clk)begin
        p1: assert property(
        disable iff(rst_n==0)
        $fell(a) |-> ##[1:$] (b==1'b0) ##[1:$] (c==1'b0))
          else $display("%t rst_n= %b, %b", $realtime, rst_n, $sampled(b));
    end

 initial begin 
   $dumpfile("dump.vcd");
   $dumpvars(rst_n, a);
    //$monitor("%t 0x%x, 0x%x", $time, rst, a);
    
   repeat(4) @(posedge clk);
   rst_n <= 1'b1;
   a <= 1'b1; 
   repeat(4) @(posedge clk);
   $stop; 
   end  
endmodule  

```

Ben Cohen  
[http://www.systemverilog.us/](http://www.systemverilog.us/) [ben@systemverilog.us](mailto:ben@systemverilog.us)  
For training, consulting, services: contact [http://cvcblr.com/home](http://cvcblr.com/home)

\*\* SVA Handbook 4th Edition, 2016 ISBN 978-1518681448  
…

1. SVA Package: Dynamic and range delays and repeats [SVA: Package for dynamic and range delays and repeats - SystemVerilog - Verification Academy](https://rb.gy/a89jlh)
2. Free books: Component Design by Example [https://rb.gy/9tcbhl](https://rb.gy/9tcbhl)  
Real Chip Design and Verification Using Verilog and VHDL($3) [https://rb.gy/cwy7nb](https://rb.gy/cwy7nb)
3. Papers:

- SVA Alternative for Complex Assertions  
[https://verificationacademy.com/news/verification-horizons-march-2018-issue](https://verificationacademy.com/news/verification-horizons-march-2018-issue)
- SVA in a UVM Class-based Environment  
[https://verificationacademy.com/verification-horizons/february-2013-volume-9-issue-1/SVA-in-a-UVM-Class-based-Environment](https://verificationacademy.com/verification-horizons/february-2013-volume-9-issue-1/SVA-in-a-UVM-Class-based-Environment)
- Understanding the SVA Engine,  
[Verification Horizons](https://verificationacademy.com/verification-horizons/july-2020-volume-16-issue-2)
