Example of "ambiguous" delay expression


Subject: Example of "ambiguous" delay expression
From: Karen Pieper (Karen.Pieper@synopsys.com)
Date: Mon Nov 11 2002 - 13:04:21 PST


>
>Subject: Re: Example of "ambiguous" delay expression
>References: <200211111848.gABImBK01445@quicksand.cadence.com>
>Content-Type: text/plain; charset=us-ascii; format=flowed
>Content-Transfer-Encoding: 7bit
>
>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
> >
> >
> >
> >
>
>--
>--
>Dave Rich
>Principal Engineer, CAE, VTG
>Tel: 650-584-4026
>Cell: 510-589-2625
>DaveR@Synopsys.com



This archive was generated by hypermail 2b28 : Mon Nov 11 2002 - 13:04:58 PST