Re: [sv-ac] [Fwd: Clock flow in SV assertion]

From: John Havlicek <john.havlicek_at_.....>
Date: Wed Mar 08 2006 - 05:34:29 PST
Hi Surya:

I am not a parsing expert, but I think that you can treat "@" as
an operator and make up a precedence for it for the purpose
of reading it in.  Not all choices may be equally good.  :)

You have to distinguish "real" parentheses that were written 
in the property from "fake" ones that get introduced in parsing.

Then you could go back over your parsed structure and figure
out, according to the clock flow rules, what the scope of each
clocking event is.

Best regards,

John H.

> Sender: spsaha@cal.interrasystems.com
> Date: Wed, 08 Mar 2006 18:42:25 +0530
> From: Surya Pratik Saha <spsaha@cal.interrasystems.com>
> X-Accept-Language: en
> CC: sv-ac@eda.org
> X-OriginalArrivalTime: 08 Mar 2006 13:11:27.0485 (UTC) FILETIME=[CEEBEAD0:01C642B1]
> 
> <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <html>
> Hi John,
> <br>Even if I dont consider @ as operator, I have to know the precedence
> to implement sequence/property expression in an yacc file. And also the
> LRM has the following rule:
> <p>property_expr ::=
> <br>sequence_expr
> <br>...
> <br>| clocking_event property_expr
> <p>So in which context an item will be reduced with "clocking_event property_expr"
> has to be well defined.
> <p>LRM is not clear on that.
> <p>John Havlicek wrote:
> <blockquote TYPE=CITE>Surya:
> <p>> Some days ago I asked the precedence of @ operator in assertion rule.
> <br>> I did not get well defined answer, however by reading the clock flow
> section,
> <br>> it is understood that @ has the weakest precedence.
> <p>Ed answered you that "@" is not an assertion expression operator,
> <br>so your line of reasoning to deduce that the LRM example
> <p>> @(posedge clk) a ##1 @(posedge clk1) s1 |=> @(posedge clk2) s2;
> <p>is wrong is flawed.
> <p>I will repeat Ed's answer:&nbsp; in SVA, "@" is not an expression
> <br>operator.
> <p>Best regards,
> <p>John H.
> <p>> X-Authentication-Warning: server.eda.org: majordom set sender to owner-sv-ac@eda.org
> using -f
> <br>> Date: Wed, 08 Mar 2006 15:22:41 +0530
> <br>> From: Surya Pratik Saha &lt;spsaha@cal.interrasystems.com>
> <br>> X-Accept-Language: en
> <br>> X-Virus-Status: Clean
> <br>> Sender: owner-sv-ac@eda.org
> <br>> X-OriginalArrivalTime: 08 Mar 2006 09:55:09.0683 (UTC) FILETIME=[62CDF430:01C64296]
> <br>>
> <br>> &lt;!doctype html public "-//w3c//dtd html 4.0 transitional//en">
> <br>> &lt;html>
> <br>> &amp;nbsp;
> <br>> &lt;p>-------- Original Message --------
> <br>> &lt;table BORDER=0 CELLSPACING=0 CELLPADDING=0 >
> <br>> &lt;tr>
> <br>> &lt;th ALIGN=RIGHT VALIGN=BASELINE NOWRAP>Subject:&amp;nbsp;&lt;/th>
> <br>>
> <br>> &lt;td>Clock flow in SV assertion&lt;/td>
> <br>> &lt;/tr>
> <br>>
> <br>> &lt;tr>
> <br>> &lt;th ALIGN=RIGHT VALIGN=BASELINE NOWRAP>Date:&amp;nbsp;&lt;/th>
> <br>>
> <br>> &lt;td>Wed, 08 Mar 2006 10:28:44 +0530&lt;/td>
> <br>> &lt;/tr>
> <br>>
> <br>> &lt;tr>
> <br>> &lt;th ALIGN=RIGHT VALIGN=BASELINE NOWRAP>From:&amp;nbsp;&lt;/th>
> <br>>
> <br>> &lt;td>Surya Pratik Saha &amp;lt;spsaha@cal.interrasystems.com>&lt;/td>
> <br>> &lt;/tr>
> <br>>
> <br>> &lt;tr>
> <br>> &lt;th ALIGN=RIGHT VALIGN=BASELINE NOWRAP>To:&amp;nbsp;&lt;/th>
> <br>>
> <br>> &lt;td>"sv-bc@eda.org" &amp;lt;sv-bc@eda.org>, sv-ac@eda.org&lt;/td>
> <br>> &lt;/tr>
> <br>> &lt;/table>
> <br>>
> <br>> &lt;p>Hi,
> <br>> &lt;br>Some days ago I asked the precedence of @ operator in assertion
> rule.
> <br>> I did not get well defined answer, however by reading the clock flow
> section,
> <br>> it is understood that @ has the weakest precedence.
> <br>> &lt;p>Considering the fact the given e.g. in LRM (page no. 282, e.g.
> d)
> <br>> &lt;p>@(posedge clk) a ##1 @(posedge clk1) s1 |=> @(posedge clk2)
> s2;
> <br>> &lt;p>will be parsed as:
> <br>> &lt;p>@(posedge clk) a ##1 (@(posedge clk1) s1 |=> @(posedge clk2)
> s2);
> <br>> &lt;p>So (@(posedge clk1) s1 |=> @(posedge clk2) s2) will become
> a property
> <br>> expression.
> <br>> &lt;p>But as per assertion BNF, ## operator can not have property
> expression
> <br>> in RHS. So the e.g. given in LRM is wrong.
> <br>> &lt;p>Please confirm.
> <br>> &lt;pre>--&amp;nbsp;
> <br>> Regards
> <br>> Surya.&lt;/pre>
> <br>> &amp;nbsp;&lt;/html>
> <br>></blockquote>
> 
> <pre>--&nbsp;
> Regards
> Surya.</pre>
> &nbsp;</html>
> 
Received on Wed Mar 8 05:34:46 2006

This archive was generated by hypermail 2.1.8 : Wed Mar 08 2006 - 05:35:30 PST