RE: [sv-ac] Sampled value function $past $rose $fell

From: Korchemny, Dmitry <dmitry.korchemny_at_.....>
Date: Tue Jan 13 2009 - 02:29:52 PST
Hi Soumya,

I assume that you are talking about $past(b,2, ,@(posedge clk1));

Suppose that clk ticks at time 100 (when a also happens) and 200, when $past is checked, and clk1 ticks at time 150 and 170. Then $past(b,2, ,@(posedge clk1)) will take the sampled value of b at time 150 (two ticks of clk1 back). If it is 1, the sequence sq1 will be matched at time 200.

Though it is not directly related to your question, I am not sure what your intention was in assert1: it means that a is always true starting from the second tick of clk and b is always true in some moments that depend on mutual patterns of clk and clk1. Also, if the second tick of clk1 does not happen before the second tick of clk (e.g., if clk and clk1 are the same clock) the assertion will fail.

Regards,
Dmitry

-----Original Message-----
From: owner-sv-ac@server.eda.org [mailto:owner-sv-ac@server.eda.org] On Behalf Of soumya
Sent: Tuesday, January 13, 2009 12:12 PM
To: sv-ac@server.eda.org
Subject: [sv-ac] Sampled value function $past $rose $fell

Hi,
 Please consider this sequence and property.

sequence sq1;
@(posedge clk)  a ##1 $past(b,2, ,clk1);
endsequence

property prop;
@(posedge clk)##1 sq1;
endproperty

assert1: assert property(prop)

$past has clk1 in his argument , but the sequence or property has clk.
Both this clk and clk1 are different.
My question is that while sampling which clock should $past take, clk or
clk1? In place of $past, if $rose or $fell used then what will be the clock?

Thanks,
-Soumya


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This email was Anti Virus checked by Astaro Security Gateway. http://www.astaro.com
---------------------------------------------------------------------Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material forthe sole use of the intended recipient(s). Any review or distributionby others is strictly prohibited. If you are not the intendedrecipient, please contact the sender and delete all copies.
-- This message has been scanned for viruses anddangerous content by MailScanner, and isbelieved to be clean.
Received on Tue Jan 13 02:31:09 2009

This archive was generated by hypermail 2.1.8 : Tue Jan 13 2009 - 02:31:49 PST