RE: [sv-ec] 5.7 Array Assignment question

From: Steven Sharp <sharp_at_.....>
Date: Thu Nov 10 2005 - 15:52:49 PST
>From: "Bresticker, Shalom" <shalom.bresticker@intel.com>

>5.8 says,
>"A subroutine that accepts a one-dimensional fixed-size array can also
>be passed a dynamic array of a compatible type of the same size."
>
>and
>
>"A subroutine that accepts a dynamic array can be passed a dynamic array
>of a compatible type or a one-dimensional fixed-size array of a
>compatible type"

These are somewhat misleading unless you realize that the "compatible
type" may itself be a dynamic or fixed-size array.


>5.14 says, 
>"A queue is analogous to a one-dimensional unpacked array that
>grows and shrinks automatically."

All of this wording would get simpler if the text didn't refer to
multi-dimensional arrays.  SystemVerilog doesn't really have multi-
dimensional arrays; it has arrays whose elements can themselves
be arrays (or dynamic arrays or queues or associative arrays).  There
would be no need to have awkward wording about one dimension of an
array if there weren't text that incorrectly referred to arrays of
arrays as arrays with multiple dimensions.

Steven Sharp
sharp@cadence.com
Received on Thu Nov 10 15:52:58 2005

This archive was generated by hypermail 2.1.8 : Thu Nov 10 2005 - 15:53:13 PST