RE: [sv-ac] 3191: Allow sequence methods with sequence expressions

From: Katz, Jacob <jacob.katz@intel.com>
Date: Tue Feb 15 2011 - 23:23:51 PST

Hi Ben,

Can't the same be said about arguments to function calls or module instances? There is no requirement from the LRM to assign big and complex expressions to temporary variables/nets before sending them as arguments. Although there also the code may become less beautiful (or ugly), but the convenience of being able to send simple expressions without creating unnecessary temporaries is of a great value; so the choice is left to the coder.

I guess the same reasoning applies to arguments of properties and checkers. It would be highly inconvenient to create named sequences even for the simplest Boolean expressions to be able to send them as arguments to a checker which internally applies 'triggered' on it. I think in this case the style issue should be left to the coder...

Makes sense?
--------------------------------
Jacob M. Katz | jacob.katz@intel.com<mailto:jacob.katz@intel.com> | Work: +972-4-865-5726 | iNet: (8)-465-5726

From: owner-sv-ac@eda.org [mailto:owner-sv-ac@eda.org] On Behalf Of ben cohen
Sent: Tuesday, February 15, 2011 20:53
To: thomas.thatcher@oracle.com
Cc: sv-ac >> "sv-ac@eda.org"
Subject: [sv-ac] 3191: Allow sequence methods with sequence expressions

After more thoughts, I am NOT in favor of this proposition because it could lead to bad coding style. sequences can be fairly complex with and, or, intersect, throughout, etc oeprators). Passing all of that as an argument is definitely NOT desirable.
Ben Cohen SystemVerilog.us

----
3191:   Allow sequence methods with sequence expressions
Jacob:  Would allow passing sequence expressions as actual arguments
Ben:    On one hand it could be convenient.
       on the other hand it could lead to bad coding style.
On Tue, Feb 15, 2011 at 10:30 AM, Thomas J Thatcher <thomas.thatcher@oracle.com<mailto:thomas.thatcher@oracle.com>> wrote:
Minutes of SV-AC Meeting
Date:  2011-02-08
Time:  16:30 UTC (8:30 PST)
Duration: 1.5 hours
--
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, and is
believed to be clean.
Received on Tue Feb 15 23:24:37 2011

This archive was generated by hypermail 2.1.8 : Tue Feb 15 2011 - 23:24:52 PST