[sv-bc] RE: Assignment pattern questions

From: Rich, Dave <Dave_Rich@mentor.com>
Date: Thu Oct 23 2014 - 00:25:07 PDT
The BNF does not allow that.

assignment_pattern ::= // from A.6.7.1
'{ expression { , expression } }
| '{ structure_pattern_key : expression { , structure_pattern_key : expression } }
| '{ array_pattern_key : expression { , array_pattern_key : expression } }
| '{ constant_expression { expression { , expression } } }

From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of Bresticker, Shalom
Sent: Thursday, October 23, 2014 12:10 AM
To: Steven Sharp; 'SV-BC'
Subject: [sv-bc] RE: Assignment pattern questions

You're correct. I did not read the text carefully enough. Thank you.

What about mixing positional assignments with assignments by key ?

Thanks,
Shalom

From: owner-sv-bc@eda.org<mailto:owner-sv-bc@eda.org> [mailto:owner-sv-bc@eda.org] On Behalf Of Steven Sharp
Sent: Thursday, October 23, 2014 02:26
To: Bresticker, Shalom; 'SV-BC'
Subject: [sv-bc] RE: Assignment pattern questions

Yes, the keys can be mixed.  The LRM specifically describes the order in which the kinds of keys are applied (member, then type, then default), with each only applying to fields not set by a higher priority kind of key.  See the bullets after "The matching rules are as follows:"


From: owner-sv-bc@eda.org<mailto:owner-sv-bc@eda.org> [mailto:owner-sv-bc@eda.org] On Behalf Of Bresticker, Shalom
Sent: Tuesday, October 21, 2014 9:03 AM
To: 'SV-BC'
Subject: [sv-bc] Assignment pattern questions

A couple of questions about assignment patterns:


1.   Can different types of keys be mixed? I.e., Can structure member name keys be mixed with member type name keys? I don't see anything to forbid it.

2.   What if two such keys apply to the same member? Based on what the LRM says about duplicate keys, I would guess that the last one takes precedence.

3.   What about mixing structure member name/type or array index keys with positional assignments ? I would guess that should not be allowed.


Thanks,
Shalom

Shalom Bresticker
Communications & Storage Infrastructure Group Design Automation
Intel Jerusalem, Israel
+972  2 589 6582 (office)
+972 54 721 1033 (cell)
http://www.linkedin.com/in/shalombresticker
The devil is in the details.


---------------------------------------------------------------------
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<http://www.mailscanner.info/>, and is
believed to be clean.

---------------------------------------------------------------------
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 Thu Oct 23 00:26:19 2014

This archive was generated by hypermail 2.1.8 : Thu Oct 23 2014 - 00:26:35 PDT