Re: Example of "ambiguous" delay expression


Subject: Re: Example of "ambiguous" delay expression
From: Shalom Bresticker (Shalom.Bresticker@motorola.com)
Date: Thu Nov 14 2002 - 02:05:15 PST


The current BNF does not require parentheses.
This is the subject of issues 63 and 174 in the 1364-2001 ETF database.

Shalom

> >Any delay expression requires parenthesis, so this should not be ambiguous.
> >
> >Steven Sharp wrote:
> >
> > >module top ();
> > >reg r;
> > >initial
> > >begin
> > > r = #100 - 1 - 1; // #100
> > > $display(r);
> > > r = #(100 - 1) - 1; // #99
> > > $display(r);
> > > r = #100 (- 1 - 1); //#100
> > > $display(r);
> > >end
> > >endmodule
> > >
> > >Output:
> > >0
> > >1
> > >0

--
Shalom Bresticker                           Shalom.Bresticker@motorola.com
Design & Reuse Methodology                             Tel: +972 9 9522268
Motorola Semiconductor Israel, Ltd.                    Fax: +972 9 9522890
POB 2208, Herzlia 46120, ISRAEL                       Cell: +972 50 441478

"The devil is in the details."



This archive was generated by hypermail 2b28 : Thu Nov 14 2002 - 02:06:49 PST