[sv-bc] Query on Formal Syntax of property_case_item [SV 2012]

From: Datta, Kausik <Kausik_Datta@mentor.com>
Date: Mon Oct 06 2014 - 06:30:06 PDT
Hi,

In SV 2012 LRM the semicolon [;] in property_case_item is optional, this means writing two expressions without any symbol in between is valid in SV.

For example  the following syntax is a valid one as per LRM

case (expr1) expr2 : expr3 expr4 : expr5 endcase
where there is no delimiter in between expr3 and expr4.

Is this an intended syntax? But all examples in this area in LRM has [;] after property_expr.

Formal Syntax:
property_expr ::= case ( expression_or_dist ) property_case_item { property_case_item } endcase

property_case_item::=
expression_or_dist { , expression_or_dist } : property_expr [ ; ]
| default [ : ] property_expr [ ; ]

Thanks
Kausik Datta


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Mon Oct 6 06:30:26 2014

This archive was generated by hypermail 2.1.8 : Mon Oct 06 2014 - 06:30:41 PDT