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

From: Steven Sharp <sharp_at_.....>
Date: Tue Mar 06 2007 - 17:49:51 PST
>From: Greg Jaxon <Greg.Jaxon@synopsys.com>

>> Is there any reason this functionality cannot be obtained via a
>> shift right, followed by a cast to the desired width?
>
>Out-of-bounds part selects produce Xs whereas shift and cast bring in sign bits 
and/or 0s.

You have a good point that this is a distinction between the two.

However, an out of bounds part select is also allowed to produce a
compile error.  So a design cannot be written to rely on this X
behavior.  For any valid design written with a part select (i.e.
one that is guaranteed to compile without error), the shift and
cast would still produce the same result.

Steven Sharp
sharp@cadence.com


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Tue Mar 6 17:50:08 2007

This archive was generated by hypermail 2.1.8 : Tue Mar 06 2007 - 17:50:19 PST