From: Stuart Sutherland (stuart@sutherland-hdl.com)
Date: Thu Jun 21 2001 - 13:55:43 PDT
<x-flowed>
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
</x-flowed>
This archive was generated by hypermail 2.1.4
: Mon Jul 08 2002 - 12:54:40 PDT
and
sponsored by Boyd Technology, Inc.