RE: [sv-bc] part selects on arbitrary expressions

From: Feldman, Yulik <yulik.feldman_at_.....>
Date: Wed Mar 07 2007 - 05:04:47 PST
Another problem is that this approach can not be used with types other
than simple one-dimensional packed arrays.

Even if one could apply the shift operator on types likes unpacked
arrays, calculating the shift count for a part select like
(expr)[5][i][j].b would be a real nightmare.

--Yulik.

-----Original Message-----
From: owner-sv-bc@server.eda.org [mailto:owner-sv-bc@server.eda.org] On
Behalf Of Bresticker, Shalom
Sent: Wednesday, March 07, 2007 2:41 PM
To: sv-bc@server.eda.org
Subject: RE: [sv-bc] part selects on arbitrary expressions

Additional problems with that solution are

1. lint messages about casting a wide expression to a narrower width,
and thereby losing significant bits

2. In addition to Arturo's note that it is easy to write incorrectly, it
is not easily readable.

Shalom

> -----Original Message-----
> From: Arturo Salz [mailto:Arturo.Salz@synopsys.com]
> Sent: Wednesday, March 07, 2007 1:52 AM
> To: Steven Sharp; Arturo.Salz@synopsys.COM; Bresticker, Shalom;
> Feldman, Yulik; sv-bc@eda.org; mcnamara@cadence.com
> Subject: RE: [sv-bc] part selects on arbitrary expressions
> 
> Steve,
> 
> Are you suggesting we dispense with slicing altogether?
> Shifting, masking, and casting are tedious and error prone.
> 
> 	Arturo
> 
> -----Original Message-----
> From: Steven Sharp [mailto:sharp@cadence.com]
> Sent: Tuesday, March 06, 2007 2:31 PM
> To: Arturo.Salz@synopsys.COM; shalom.bresticker@intel.com;
> yulik.feldman@intel.com; sv-bc@eda.org; mcnamara@cadence.com
> Subject: RE: [sv-bc] part selects on arbitrary expressions
> 
> Is there any reason this functionality cannot be obtained via a
> shift right, followed by a cast to the desired width?
> 
> Steven Sharp
> sharp@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 Wed Mar 7 05:05:25 2007

This archive was generated by hypermail 2.1.8 : Wed Mar 07 2007 - 05:05:38 PST