Sorry, I completely forgot about the assignment. I was just looking at the declaration and the comment. I agree with you. Shalom > -----Original Message----- > From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On > Behalf Of Mark Hartoog > Sent: Wednesday, February 01, 2006 6:35 PM > To: Bresticker, Shalom; sv-bc@eda.org > Subject: RE: [sv-bc] e-mail vote: closes Feb 5th > > 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 Thu Feb 2 04:19:40 2006
This archive was generated by hypermail 2.1.8 : Thu Feb 02 2006 - 04:21:32 PST