Re: B13 Indexed parts select

From: Stefen Boyd (stefen@boyd.com)
Date: Wed Nov 18 1998 - 15:09:30 PST


At 04:35 PM 11/18/98 -0600, Adam Krolnik wrote:

<p>BAD MSG:
>
It is unfortunate that people are worried about the abnormal cases.
X-Lines: 30
Content-Type: text/plain; charset="us-ascii"
Content-Length: 663
X-Status: $$$$
X-UID: 0000000715
Status: RO

Since I'm forced to accept a new operator, this is what I would like:

        reg [7:0] blue;
        reg [0:7] green;

        if (blue[3 :: 3] == green [3 :: 3]) ...
        // blue[3:1] == green[3:5]

The first argument is the starting bit, the second is
the width. The operator always gets it's value from
left to right without regard to the endianness of the
vector. "+:" would confuse users as to whether it
grabbed [5:3] or [3:1]... and might make them expect
a "-:".

Regards,
  Stefen

--------------------

Stefen Boyd
__
| \ ____
|_/_ |
| \ |__
|___/oyd |
           |___nterprises
stefen@boyd.com
(408)739-BOYD
(408)481-9658 (fax)



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