# Assertion failing - no clue why!

**URL:** <https://verificationacademy.com/forums/t/assertion-failing-no-clue-why/34393>\
**Category:** SystemVerilog\
**Tags:** System-Verilog, SystemVerilog, Assertion-system-verilog, assertion\
**Created:** [April 25, 2018, 9:50pm UTC](https://verificationacademy.com/forums/t/assertion-failing-no-clue-why/34393 "2018-04-25T21:50:32Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![somys](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/f1d935/32.png) [@somys](https://verificationacademy.com/forums/u/somys)\
**Post date:** [April 26, 2018, 4:56pm UTC](https://verificationacademy.com/forums/t/assertion-failing-no-clue-why/34393/3 "2018-04-26T16:56:07Z")

</div>

_In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/assertion-failing-no-clue-why/34393/2):_

> _In reply to [somys](https://verificationacademy.com/forums/t/assertion-failing-no-clue-why/34393/2):_  
> You error is in the location of the “!” operator  
> You have:  
> (!(data\_valid & (src\_port==id))) throughout ( (($rose(signal\_sop)) && (src\_port == id))[-\>1] );  
> Should be:  
> (!data\_valid && src\_port==id) throughout ($rose(signal\_sop) && src\_port==id)[-\>1];

* * *

Thanks a lot for replying.

In my case, the src\_port can be different than “id” at times and for those id’s, data valid is allowed to be 1 after $rose(signal\_eop) is seen for a specific ID. data valid should be 0 until $rose(signal\_sop) is seen for that same ID.

Doesn’t your solution require data\_valid=0 and src\_port==id all the time? and not allow src\_port to be any different than that specific ID?

please explain since I am at loss with this understanding. Thanks a lot.

---

_[View the full topic](https://verificationacademy.com/forums/t/assertion-failing-no-clue-why/34393)._
