RE: [sv-bc] Sign of a signed packed array of struct

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Fri Oct 15 2010 - 05:14:32 PDT

7.4.1 says,

"If a packed array is declared as signed, then the array viewed as a single vector shall be signed. The individual elements of the array are unsigned unless they are of a named type declared as signed. A part-select of a packed array shall be unsigned."

So I would assume S to be signed and S[0] as unsigned.

Shalom

> -----Original Message-----
> From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
> Paul Graham
> Sent: Saturday, September 11, 2010 12:11 AM
> To: sv-bc
> Subject: [sv-bc] Sign of a signed packed array of struct
>
> Given this array-of-struct declaration:
>
> struct packed signed { ... } [3:0] S;
>
> I can't tell if the signed keyword applies to the struct or to the
> array as a whole. Is S signed? Is S[0] signed?
>
> Paul

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri Oct 15 05:14:59 2010

This archive was generated by hypermail 2.1.8 : Fri Oct 15 2010 - 05:17:36 PDT