# When master signal is asserted a slave signal should be asserted after some time delay. the assertion is not failing if the duration is more

**URL:** <https://verificationacademy.com/forums/t/when-master-signal-is-asserted-a-slave-signal-should-be-asserted-after-some-time-delay-the-assertion-is-not-failing-if-the-duration-is-more/36539>\
**Category:** SystemVerilog\
**Tags:** SVA, SystemVerilog, SV, assertion\
**Created:** [September 13, 2019, 7:47pm UTC](https://verificationacademy.com/forums/t/when-master-signal-is-asserted-a-slave-signal-should-be-asserted-after-some-time-delay-the-assertion-is-not-failing-if-the-duration-is-more/36539 "2019-09-13T19:47:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![MSB](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@MSB](https://verificationacademy.com/forums/u/MSB)\
**Post date:** [September 20, 2019, 4:00pm UTC](https://verificationacademy.com/forums/t/when-master-signal-is-asserted-a-slave-signal-should-be-asserted-after-some-time-delay-the-assertion-is-not-failing-if-the-duration-is-more/36539/3 "2019-09-20T16:00:41Z")

</div>

_In reply to [ben@SystemVerilog.us](https://verificationacademy.com/forums/t/when-master-signal-is-asserted-a-slave-signal-should-be-asserted-after-some-time-delay-the-assertion-is-not-failing-if-the-duration-is-more/36539/2):_

> _In reply to [srirahulch95](https://verificationacademy.com/forums/t/when-master-signal-is-asserted-a-slave-signal-should-be-asserted-after-some-time-delay-the-assertion-is-not-failing-if-the-duration-is-more/36539/2):_  
> Time should be in number of clock cycles, not in ns.

```verilog

Let max_cycles=20;
ap_max: assert property(
@(posedge clk) $rose(master_rise) |-> ##[1:max_cycles] $rose(slave_rise));

```

Ben [systemverilog.us](http://systemverilog.us)

Looks like his intention is to check if the delay between slave\_rise and master\_rise is equal to the expected duration.

In that case he should use ##[0:] instead of [\*0:].  
Below code should serve the intention.

```verilog
property p_max_time(clk,master_rise,slave_rise,duration);
time start_time;
@(posedge clk) ($rose(master_rise),start_time = $realtime) |-> ##[1:$] $rose(slave_rise) ##0 (($realtime -start_time) == duration);
endproperty

```

Regards,  
Manju  
[https://www.linkedin.com/in/manjubhat/](https://www.linkedin.com/in/manjubhat/)

---

_[View the full topic](https://verificationacademy.com/forums/t/when-master-signal-is-asserted-a-slave-signal-should-be-asserted-after-some-time-delay-the-assertion-is-not-failing-if-the-duration-is-more/36539)._
