[sv-ec] 9.4.2 example

From: Bresticker, Shalom <shalom.bresticker_at_.....>
Date: Wed May 27 2009 - 06:18:58 PDT
Hi,

Daniel Mlynek wrote in http://www.eda-stds.org/sv-ec/hm/6589.html:

Anyway the main problem is that I think the example in 9.4.2 Event control is wrong.
Comments says:  "// @(p.status) now waits for status in Packet 2 to change, if not already different from Packet 1"
but p is not changed in the example at all.
If it would be assigned with handle pointing on object "Packet 1" then example would be ok.
My proposal is to change :

Packet p = new; // Packet 1
Packet q = new; // Packet 2
initial fork
        @(p.status); // Wait for status in Packet 1 to change
        @p;          // Wait for a change to handle p
        # 10 p = q;  // triggers @p.
        // @(p.status) now waits for status in Packet 2 to change,
        // if not already different from Packet 1
join

I think Daniel is correct, that the comment looks wrong.

Editorially, this example seems to be referring to the definition of Packet in 8.2.
Otherwise, who knows what "status" is?
If so, the text should refer the reader to 8.2.

Thanks,
Shalom

Shalom Bresticker
Intel LAD DA
Jerusalem, Israel
+972  2 589 6582 (office)
+972 54 721 1033 (cell)


---------------------------------------------------------------------
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 May 27 06:27:41 2009

This archive was generated by hypermail 2.1.8 : Wed May 27 2009 - 06:28:55 PDT