Re: Fwd: Genvars only positive?

From: Jayaram Bhasker (jbhasker@cadence.com)
Date: Fri Jun 22 2001 - 05:51:50 PDT


Precedence: bulk

Paul, Stu:

I am looking at draft D6 (which I believe is the final one) and it does NOT
say POSITIVE integer. The text in 12.1.3.1 reads "A genvar is an integer that
is local to and shall only ..."

- bhasker

<p>> X-Authentication-Warning: max.boyd.com: majordomo set sender to
owner-btf@boyd.com using -f
> X-Sender: stuart@mail.sutherland-hdl.com
> Date: Thu, 21 Jun 2001 13:55:43 -0700
> To: btf@boyd.com
> From: Stuart Sutherland <stuart@sutherland-hdl.com>
> Subject: Fwd: Genvars only positive?
> Mime-Version: 1.0
> X-Received: By mailgate.Cadence.COM as OAA29453 at Thu Jun 21 14:37:42 2001
>
> Precedence: bulk
>
> Cliff,
>
> Does anyone in your group want to comment on this (please copy me)?
>
> Thanks,
>
> Stu
>
> >Sender: pgraham@cadence.com
> >Date: Wed, 20 Jun 2001 16:50:55 -0400
> >From: Paul Graham <pgraham@cadence.com>
> >Organization: Cadence Design Systems
> >X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.5.1 sun4u)
> >X-Accept-Language: en
> >To: stuart@sutherland-hdl.com
> >Subject: Genvars only positive?
> >X-Received: By mailgate2.Cadence.COM as NAA26991 at Wed Jun 20 13:54:08 2001
> >
> >Stuart,
> >
> >I'm looking at Draft 4 of the LRM, section 12.1.3.1, where it says:
> >
> > A genvar is a positive integer that is local to and shall only be
> >used
> > within a generate loop that uses it as an index variable.
> >
> >Restricting a genvar to be positive actually violates some examples in
> >the LRM.
> >Restricting it to be non-negative means you can't do something like:
> >
> > genvar i;
> > generate
> > for (i = 7; i >= 0; i = i - 1) ...
> >
> >because the condition (i >= 0) will always be true.
> >
> >Why not just allow a genvar to be a signed 32-bit quantity?
> >
> >BTW, is there an official place to send LRM errata?
> >
> >Paul
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Stuart Sutherland Sutherland HDL Inc.
> stuart@sutherland-hdl.com 22805 SW 92nd Place
> phone: 503-692-0898 Tualatin, OR 97062
> www.sutherland-hdl.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>

J. Bhasker
Cadence Design Systems
7535 Windsor Drive, Suite A200, Allentown, PA 18195
610.398.6312, 610.530.7985 (fax), jbhasker@cadence.com



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:54:40 PDT and
sponsored by Boyd Technology, Inc.