RE: [sv-ec] why contraints is declared as a task

From: Bresticker, Shalom <shalom.bresticker@intel.com>
Date: Wed Sep 15 2010 - 03:25:43 PDT

Hi,

Please see Mantis 2902 (http://www.eda-stds.org/mantis/view.php?id=2902).

Regards,
Shalom

From: owner-sv-ec@eda.org [mailto:owner-sv-ec@eda.org] On Behalf Of Daniel Mlynek
Sent: Wednesday, September 15, 2010 8:11 AM
To: sv-ec@eda.org
Cc: 'Grzegorz Kunc'; 'Marek Nadrowski'
Subject: [sv-ec] why contraints is declared as a task

1. Lrm says that constrain_mode is a task:

task object[.constraint_identifier]::constraint_mode( bit on_off );

This implies that constraint_mode cannot be set in functions as function cannot enable task. This is serious restriction as constrain_mode cannot be called ie in contructor.

Why not changing the given syntax to void function. The 2nd issue in above syntax is missuse of scope operator ::. Imho there should be . instead ::

function void object[.constraint_identifier].constraint_mode( bit on_off );

2. The last thing is that whole syntax is at least strange. imho it should be changed to show the constraint_mode function header:

function void constraint_mode( bit on_off );

and then it should be described that constrain header can be called via dot on:

object

constraint_identifier

and for static constrtaints it can be also called via scope operator on:

constraint_identifier

DANiel

--
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 Wed Sep 15 03:26:37 2010

This archive was generated by hypermail 2.1.8 : Wed Sep 15 2010 - 03:26:58 PDT