Re: [sv-ac] SVA: LRM 17.8 // Parentheses with sequence_match_item

From: John Havlicek <john.havlicek@motorola.com>
Date: Mon May 03 2004 - 08:48:39 PDT

Hi Surrendra:

I think Hillel pointed out these missing parentheses a while ago.
This issue may already be "logged".

BTW, is there a list of errata that we can see? I expect we may
get multiple reports of the same issues and it will be good if
there is a way to make the list of issues and responses/interpretations
visible.

John H.

> <html>
> As you have pointed out, the examples do match the LRM. The syntax in =
> the
> examples need to be corrected and filed as errata.<br>
> Surrendra<br>
> At 09:10 PM 5/2/2004 -0400, you wrote:<br>
> <blockquote type=3Dcite class=3Dcite cite><font face=3D"arial" =
> size=3D2><i>LRM
> requires parentheses when sequence match item is used.&nbsp; Yet,
> </i><br>
> <i>LRM document is not consistent with this requirement.&nbsp; </i><br>
> 17.8 Manipulating data in a sequence<br>
> ...<br>
> sequence_expr ::=3D<br>
> ...<br>
> | </font><font face=3D"arial" size=3D2 color=3D"#FF0000"><b>(
> </b></font><font face=3D"arial" size=3D2>expression_or_dist {,
> sequence_match_item }
> </font><font face=3D"arial" size=3D2 =
> color=3D"#FF0000"><b>)</b></font><font face=3D"arial" size=3D2>
> [ boolean_abbrev ]<br>
> | </font><font face=3D"arial" size=3D2 color=3D"#FF0000"><b>(
> </b></font><font face=3D"arial" size=3D2>sequence_expr {,
> sequence_match_item}
> </font><font face=3D"arial" size=3D2 =
> color=3D"#FF0000"><b>)</b></font><font face=3D"arial" size=3D2>
> [ sequence_abbrev ]<br>
> ...<br>
> &nbsp;<br>
> a ##1
> </font><font face=3D"arial" size=3D2 =
> color=3D"#FF0000"><b>(</b></font><font face=3D"arial" =
> size=3D2>b[-&gt;1],
> x =3D
> e</font><font face=3D"arial" size=3D2 =
> color=3D"#FF0000"><b>)</b></font><font face=3D"arial" size=3D2>
> ##1 c[*2]<br>
> sequence data_check;<br>
> &nbsp; int x;<br>
> &nbsp; a ##1 </font><font face=3D"arial" size=3D2 =
> color=3D"#FF0000"><b>!a, x =3D
> data_in</b></font><font face=3D"arial" size=3D2> ##1 !b[*0:$] ##1 b
> &amp;&amp; (data_out =3D=3D x);<br>
> endsequence<br>
> &nbsp;<br>
> </font><font face=3D"arial" size=3D2 color=3D"#FF0000"><b><i>Shouldn't =
> that
> line be with parentheses, such as:</i>
> </b></font><font face=3D"arial" size=3D2><br>
> &nbsp;a ##1 </font><font face=3D"arial" size=3D2 =
> color=3D"#FF0000"><b>(!a, x =3D
> data_in)</b></font><font face=3D"arial" size=3D2> ##1 !b[*0:$] ##1 b
> &amp;&amp; (data_out =3D=3D x);<br>
> property data_check_p<br>
> &nbsp; int x;<br>
> &nbsp; a ##1 </font><font face=3D"arial" size=3D2 =
> color=3D"#FF0000"><b>!a, x =3D
> data_in</b></font><font face=3D"arial" size=3D2> |=3D&gt; !b[*0:$] ##1 =
> b
> &amp;&amp; (data_out =3D=3D x);<br>
> endproperty<br>
> </font><font face=3D"arial" size=3D2 color=3D"#FF0000"><b><i>Shouldn't =
> that
> line be with parentheses, such
> as:</i></b></font><font face=3D"arial" size=3D2><br>
> &nbsp; a ##1 </font><font face=3D"arial" size=3D2 =
> color=3D"#FF0000"><b>(!a, x =3D
> data_in)</b></font><font face=3D"arial" size=3D2> |=3D&gt; !b[*0:$] ##1 =
> b
> &amp;&amp; (data_out =3D=3D x);<br>
> ...<br>
> sequence rep_v;<br>
> &nbsp; int x;<br>
> &nbsp; =E2=80=98true,x =3D 0 ##0<br>
> &nbsp; (!a [* 0:$] ##1
> </font><font face=3D"arial" size=3D2 color=3D"#FF0000"><b>a, x =3D
> x+data</b></font><font face=3D"arial" size=3D2>)[*4] ##1 b ##1 c =
> &amp;&amp;
> (data_out =3D=3D x);<br>
> endsequence<br>
> </font><font face=3D"arial" size=3D2 color=3D"#FF0000"><b><i>Shouldn't =
> that
> line be with parentheses, such
> as:</i></b></font><font face=3D"arial" size=3D2><br>
> &nbsp;(!a [* 0:$] ##1
> </font><font face=3D"arial" size=3D2 color=3D"#FF0000"><b>(a, x =3D
> x+data)</b></font><font face=3D"arial" size=3D2>)[*4] ##1 b ##1 c =
> &amp;&amp;
> (data_out =3D=3D x);<br>
> </font><font face=3D"arial" =
> size=3D1>---------------------------------------------------------------=
> --------------<br>
> Ben Cohen Trainer, Consultant, Publisher (310) 721-4830 <br>
> <a href=3D"http://www.vhdlcohen.com/">http://www.</a><b>vhdlcohen</b><a =
> href=3D"http://www.vhdlcohen.com/">.com/</a>
> vhdlcohen@aol.com <br>
> Author of following textbooks: <br>
> * <b>Using PSL/SUGAR for Formal and Dynamic Verification 2nd Edition, =
> </b>2004 isbn 0-9705394-6-0<br>
> * <b>Real Chip Design and Verification Using Verilog and VHDL</b>, 2002 =
> isbn 0-9705394-2-8 <br>
> * <b>Component Design by Example</b> &quot;, 2001 isbn =
> 0-9705394-0-1<br>
> * <b>VHDL Coding Styles and Methodologies, 2nd Edition</b>, 1999 isbn =
> 0-7923-8474-1<br>
> * <b>VHDL Answers to Frequently Asked Questions, 2nd Edition</b>, isbn =
> 0-7923-8115<br>
> ------------------------------------------------------------------------=
> ------</font><font face=3D"arial" size=3D2></blockquote>
> <x-sigsep><p></x-sigsep>
> <br><br>
> **********************************************<br>
> Surrendra A. Dudani<br>
> Synopsys, Inc.<br>
> 377 Simarano Drive, Suite 300<br>
> Marlboro, MA 01752<br><br>
> Tel:&nbsp;&nbsp; 508-263-8072<br>
> Fax:&nbsp;&nbsp; 508-263-8123<br>
> email: Surrendra.Dudani@synopsys.com&nbsp; <br>
> **********************************************</font></html>
Received on Mon May 3 08:49:14 2004

This archive was generated by hypermail 2.1.8 : Mon May 03 2004 - 08:49:24 PDT