RE: [sv-bc] 19.12.5: array of instances connection to packed array port

From: Steven Sharp <sharp_at_.....>
Date: Thu Sep 21 2006 - 18:14:21 PDT
>From: "Feldman, Yulik" <yulik.feldman@intel.com>

>[Yulik] Indeed. Just note that F.6.5 doesn't define the mapping for
>types other than arrays, so the definition should be extended.

Section 4.11 does specify the mapping for packed structs.  It
specifies that the first member specified is the most significant
and subsequent members follow in decreasing significance.  It also
specifies that the bits can be selected assuming an [n-1:0]
numbering.


>[Yulik] Maybe for vectors/arrays, but not for structs/unions and the
>general case. Even for arrays, MSB is the same as LEFT (and LSB is the
>same as RIGHT) in both cases above, so the difference is only a matter
>of taste. On the other hand, the notion of MSB/LSB is clearly defined
>for other types, likes structs, while the notion of LEFT/RIGHT is not.
>Trying to describe bit ordering of structs using LEFT/RIGHT would be
>inappropriate.

Given the assumed numbering specified in 4.11, you can describe it in
terms of LEFT/RIGHT.  Of course, 4.11 also refers to significance
when describing the layout of the members.  As you say, it is largely
a matter of taste.



Steven Sharp
sharp@cadence.com
Received on Thu Sep 21 18:14:36 2006

This archive was generated by hypermail 2.1.8 : Thu Sep 21 2006 - 18:14:47 PDT