Re: [sv-bc] Array signing clarification


Subject: Re: [sv-bc] Array signing clarification
From: Steven Sharp (sharp@cadence.com)
Date: Wed Jan 28 2004 - 12:37:00 PST


>>>TO
>>>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 if you want to declare a sub-element of a packed array as signed, you
have to use a typedef. There is no way to directly define such a type
without intermediate typedefs. That is rather irregular.

Steven Sharp
sharp@cadence.com



This archive was generated by hypermail 2b28 : Wed Jan 28 2004 - 12:43:35 PST