RE: [sv-bc] assignment pattern to scalar

From: Rich, Dave <Dave_Rich@mentor.com>
Date: Mon Oct 18 2010 - 08:18:38 PDT

You already reported this as mantis 2708 last year.

 

 I believe the LRM says that each set of braces matches each dimension
of the array. In this case there are no dimentions, so no braces should
be allowed.

 

However, intentionally or unintentially, some implementations have
allowed references to a[0:0] to be the same as a reference to a scalar
a. That needs to be resolved first.

 

 

From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
Bresticker, Shalom
Sent: Monday, October 18, 2010 3:10 AM
To: sv-bc@eda.org
Subject: [sv-bc] assignment pattern to scalar

 

Is the following legal?

 

logic a;

always_comb a = '{default:'1};

 

Thanks,

Shalom

 

Shalom Bresticker

Intel LAD DA, Jerusalem, Israel

+972 2 589 6582 (office)

+972 54 721 1033 (cell)

http://www.linkedin.com/in/shalombresticker

 

 

---------------------------------------------------------------------
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 <http://www.mailscanner.info/> , and is
believed to be clean. 
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Oct 18 08:19:04 2010

This archive was generated by hypermail 2.1.8 : Mon Oct 18 2010 - 08:21:42 PDT