RE: [sv-bc] assignment pattern to scalar

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Wed Oct 20 2010 - 08:24:53 PDT

I think that 6.9 et al clearly imply that scalars are not arrays.

"A data object declared as reg, logic, or bit (or as a matching user-defined type or implicitly as logic) without a range specification shall be considered 1 bit wide and is known as a scalar. A multibit data object of one of these types shall be declared by specifying a range, and is known as a vector. Vectors are packed arrays of scalars (see 7.4)."

Shalom

From: Greg Jaxon [mailto:Greg.Jaxon@synopsys.com]
Sent: Wednesday, October 20, 2010 5:21 PM
To: Bresticker, Shalom
Cc: sv-bc@eda.org
Subject: Re: [sv-bc] assignment pattern to scalar

At first glance, a seems to have neither "structure fields" nor "array elements".
But, depending on which array theory you accept, a scalar can sometimes be considered a zero dimensional array.
A "scalar array" has one element, whose index position is the empty vector of subscripts along each axis of the array.
If we accept this reading, then the description of array assignment patterns might be understood to assign the value 1
to a.

On 10/18/2010 5:09 AM, Bresticker, Shalom wrote:
logic a;
always_comb a = '{default:'1};
---------------------------------------------------------------------
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 Wed Oct 20 08:27:14 2010

This archive was generated by hypermail 2.1.8 : Wed Oct 20 2010 - 08:29:46 PDT