Re: Auto-increment proposal with example


Subject: Re: Auto-increment proposal with example
From: Paul B. Graham (pgraham@cadence.com)
Date: Mon Jan 06 2003 - 17:33:21 PST


> WITH: SystemVerilog also includes the C incrementor and decrementor
> operators ++i, --i, i++ and i-- (provided there is no timing control). These
> can be used in expressions without parentheses. These increment or
> decrement operations behave as blocking assignments.

Why the difference between:

    ... include the C incrementor and decrementor operators ...

and

    ... These increment or decrement operations ...

Why not use the same wording?

Does "provided there is no timing control" mean "provided there is no timing
control in the design"? Or does it mean that inc/dec cannot be used within
a delay expression?

Why say they can be "used in expressions without parentheses"? Does this
mean they cannot be used in expressions with parentheses? For instance, are

    x = (i++);
    y = i++ + (j);
    
illegal? Is the intent to say that inc/dec can only be applied to an
lvalue?

Paul



This archive was generated by hypermail 2b28 : Mon Jan 06 2003 - 17:33:49 PST