RE: [sv-bc] e-mail vote: closes Feb 5th

From: Mark Hartoog <Mark.Hartoog_at_.....>
Date: Wed Feb 01 2006 - 08:35:25 PST
Why do you think 'signed' is not needed?

Section 5.7: "Assigning to a fixed-size unpacked array requires that the

source and the target both be arrays with the same number of unpacked 
dimensions, the length of each dimension be the same, and each element
be 
of an equivalent type."

Section 6.9.2 "3) Packed arrays, packed structures, packed unions, and 
built-in integral types are equivalent if they contain the same number 
of total bits, are either all 2-state or all 4-state, and are either 
all signed or all unsigned."

     bit signed [31:0] busA [7:0]; // unpacked array of 8 32-bit vectors
     int busB [1:0]; // unpacked array of 2 integers
     busB = busA[7:6]; // select a slice from busA 

Since 'int' is a 2-state signed type, I think busA must also have
elements
which are a 2-state signed type.

> -----Original Message-----
> From: Bresticker, Shalom [mailto:shalom.bresticker@intel.com] 
> 
> I agree, although "signed" is not needed here.
> 
> Shalom
> 
> 
> > > SVDB  949 ___Yes   _X_No
> > > http://www.eda.org/svdb/bug_view_page.php?bug_id=949
> > I think it would be closer to the original intent of this 
> example to 
> > change the declaration to:
> > bit signed [31:0] busA [7:0]; // unpacked array of 8 32-bit vectors
> 
> 
Received on Wed Feb 1 08:35:31 2006

This archive was generated by hypermail 2.1.8 : Wed Feb 01 2006 - 08:36:00 PST