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

From: Steven Sharp <sharp@cadence.com>
Date: Mon May 10 2010 - 07:48:25 PDT

>From: Brad Pierce <brad_pierce@acm.org>

>
>Your version with 'foreach' is as clear as Shalom's original
>
> foreach (out[i])
> out[i] = (i >= N) ? in[i] : replace[i] ;
>
>So his example doesn't demonstrate a need for variable width part-selects.

A "need", no. Anything you could write with a variable width part-select
that ultimately results in a fixed width, you could write with bit-selects
and a loop.

The issue is presumably that this could be less convenient. It can't be
used within an expression, without wrapping it in a function first.

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.
Received on Mon May 10 07:48:50 2010

This archive was generated by hypermail 2.1.8 : Mon May 10 2010 - 07:51:30 PDT