Re: [sv-bc] RE: [sv-ec] Are variable-width part selects already part of the SV language? (Mantis 2684)

From: Brad Pierce <brad_pierce@acm.org>
Date: Fri May 07 2010 - 18:45:12 PDT

Steven,

A simple change would be to lift the restriction that the left operand
in a stream_expression must be unpacked, as suggested in bullet 3 of

  http://www.eda.org/sv-bc/hm/10176.html

so Shalom's example could be written as

  out[127:0] = { << { in with [127:N]}, replace with [N-1:0] }} ;

which is already legal today when 'in' and 'replace' are unpacked.

-- Brad

On Fri, May 7, 2010 at 5:58 PM, Steven Sharp <sharp@cadence.com> wrote:
> I'm not converging either.  I would like to understand the intended uses
> better first.  I am leary of using variables in part-selects with a bunch
> of special-case restrictions.  I would prefer to see if we can design a
> a construct that inherently avoids the problems that are avoided by those
> restrictions.
>
>
> Steven Sharp   |   Architect   |   Cadence
>
> P: 508.459.1436   M: 774.535.4149   www.cadence.com
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri May 7 18:45:28 2010

This archive was generated by hypermail 2.1.8 : Fri May 07 2010 - 18:48:12 PDT