Resent:
It took me a while, but I found that this change was made in Mantis 595 (http://www.eda-stds.org/mantis/view.php?id=595) from 2005:
"Section 16.4 has an invalid expression on the RHS of a clocking input. According to the BNF, the only legal expression there is a hierarchical identifier. The expression in question is a concatenation."
And the change was:
In 16.4, APPEND the following paragraph to the end of the subclause
"In a clocking block any expression assigned to a signal in its declaration shall be an expression that would be legal in a port connection to a port of any of the directions specified in the declaration. For example, it would be illegal to assign an inout signal an expression in its declaration that would be illegal in a port connection to an inout port."
"In A.6.11 and Syntax 16-1, REPLACE
clocking_decl_assign ::= signal_identifier [ = hierarchical_identifier ]
WITH
clocking_decl_assign ::= signal_identifier [ = hierarchical_identifier expression ]"
From this, it is clear that the change in the BNF was intended, and the text referring to the hierarchical_identifier should have been changed as well.
Regards,
Shalom
From: Bresticker, Shalom
Sent: Saturday, December 10, 2011 7:37 PM
To: 'Rich, Dave'; sv-ec@eda.org
Subject: RE: clocking _decl_assign allows expression ot just hierachical_identifier
I believe you mean the reverse, from hierarchical_identifier to expression.
Shalom
From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of Rich, Dave
Sent: Friday, December 09, 2011 7:27 PM
To: sv-ec@eda.org
Subject: [sv-ec] clocking _decl_assign allows expression ot just hierachical_identifier
Sometime between SystemVerilog 3.1a and 1800-2005, the BNF for a clocking _decl_assign was changed from
clocking_decl_assign ::= signal_identifier [ = expression ]
to
clocking_decl_assign ::= signal_identifier [ = hierarchical_identifier]
does anyone remember why?
But the LRM text (14.3) still refers to hierarchical_identifier
Filed as 0003982
Dave Rich
Verification Technologist
Mentor Graphics Corporation
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, and is believed to be clean.Received on Fri, 16 Dec 2011 03:53:04 +0000
This archive was generated by hypermail 2.1.8 : Thu Dec 15 2011 - 19:53:42 PST