Re: [Fwd: evaluation order question]

From: Shalom.Bresticker@motorola.com
Date: Mon Jan 20 2003 - 19:38:31 PST

  • Next message: Shalom.Bresticker@motorola.com: "errata/200: PROPOSAL - A.3.1, A.4.1, A.5.4, A.9.3 et al: extra [range]"

    Precedence: bulk

    I don't understand that distinction.
    I don't see why the same reasoning could not apply to both blocking and
    nonblocking assignments.

    I will look to see if I can find something about it in my mail archives.

    Shalom

    On Mon, 20 Jan 2003, Karen Pieper wrote:

    > The reason that I would assume for blocking assignments is that a blocking
    > assignment
    > a[i] = #10 b;
    > can be rewritten as:
    > t = b;
    > #10
    > a[i] = t;
    > For non-blocking assignments, the statement is saying that the value being
    > assigned to is known at the time that the rhs is evaluated so that the
    > update of the
    > variable can be scheduled.
    >
    > K
    >
    >
    > At 05:11 PM 1/20/03 +0200, Shalom Bresticker wrote:
    > >I sent this question a while back, but did not get back any answers.
    > >
    > >I also have an additional question.
    > >
    > >When there IS an intra-assignment timing control, why is the
    > >variable_lvalue evaluated "at the time specified by the ... timing
    > >control" for blocking assignments (9.2.1), but "at the same time as the
    > >expression on the right-hand side" for nonblocking assignments (9.2.2)?
    > >
    > >Thanks
    > >Shalom
    > >
    > >--
    > >Shalom Bresticker Shalom.Bresticker@motorola.com
    > >Design & Reuse Methodology Tel: +972 9 9522268
    > >Motorola Semiconductor Israel, Ltd. Fax: +972 9 9522890
    > >POB 2208, Herzlia 46120, ISRAEL Cell: +972 50 441478
    > >
    > >"The devil is in the details."
    > >
    > >
    > >Message-ID: <md5:A3D5F55F21461B4778C65A17321E4BD2>
    > >Received: from az33exr04.mot.com ([10.64.251.234]) by
    > >zil05exm01.sps.mot.com with SMTP (Microsoft Exchange Internet Mail Service
    > >Version 5.5.2656.59)
    > > id W75HMKKM; Mon, 25 Nov 2002 09:15:45 +0200
    > >Received: from zil05exm01.sps.mot.com (zil05exm01.sps.mot.com [216.3.95.200])
    > > by az33exr04.mot.com (8.11.6/8.11.6) with ESMTP id gAP7FXC05756
    > > for <Shalom.Bresticker@motorola.com>; Mon, 25 Nov 2002 01:15:33 -0600
    > >Received: from motorola.com (eagle.msil.sps.mot.com [223.131.95.41]) by
    > >zil05exm01.sps.mot.com with SMTP (Microsoft Exchange Internet Mail Service
    > >Version 5.5.2656.59)
    > > id W75HMKK1; Mon, 25 Nov 2002 09:15:39 +0200
    > >Date: Mon, 25 Nov 2002 09:15:39 +0200
    > >From: Shalom Bresticker<Shalom.Bresticker@motorola.com>
    > >To: <etf@boyd.com>
    > >Subject: evaluation order question
    > >X-Mozilla-Status2: 00000000
    > >X-Status:
    > >X-Keywords:
    > >X-UID: 8948
    > >
    > >9.2.2 para. 3 on nonblocking assignments says,
    > >
    > >"If reg_lvalue requires an evaluation, it shall be evaluated at the same
    > >time as the expression on the right-hand side. The order of evaluation
    > >of the reg_lvalue and the expression on the right-hand side is undefined
    > >if timing control is not specified."
    > >
    > >9.2.1 on blocking assignments says,
    > >"If reg_lvalue requires an evaluation, it shall be evaluated at the time
    > >specified by the intra-assignment timing control. "
    > >
    > >Questions:
    > >1. If there is no timing control, then for nba's, why is order of rhs
    > >vs. lhs undefined ?
    > >
    > >2. What happens in blocking assignments when there is no timing control?
    > >
    > >3. Why is there no parallel statement in 9.2.1?
    > >
    > >--
    > >Shalom Bresticker Shalom.Bresticker@motorola.com
    > >Design & Reuse Methodology Tel: +972 9 9522268
    > >Motorola Semiconductor Israel, Ltd. Fax: +972 9 9522890
    > >POB 2208, Herzlia 46120, ISRAEL Cell: +972 50 441478
    > >
    > >"The devil is in the details."
    >
    >



    This archive was generated by hypermail 2.1.4 : Mon Jan 20 2003 - 19:40:08 PST and
    sponsored by Boyd Technology, Inc.