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

From: Greg Jaxon <Greg.Jaxon@synopsys.com>
Date: Fri Sep 10 2010 - 19:22:01 PDT
Section 7.2.1 describes a bizarre idea, but it's described clearly enough.

One thing that I've always thought would make the signedness property a law-abiding first class citizen of SV
would be to permit it as modifier on any of the packed dimensions of an array.   This way one could be clear
about which aggregation levels would be used arithmetically.  As used here, it applies only to the struct-type
elements of the packed array.  S is unsigned.  S[0] is signed.

On 9/10/2010 4:11 PM, Paul Graham wrote:
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


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean. Received on Fri Sep 10 19:22:24 2010

This archive was generated by hypermail 2.1.8 : Fri Sep 10 2010 - 19:25:05 PDT