[sv-bc] Assignment, incrementor and decrementor proposal


Subject: [sv-bc] Assignment, incrementor and decrementor proposal
From: Peter Flake (Peter.Flake@synopsys.com)
Date: Sun Mar 16 2003 - 13:49:32 PST


IN DRAFT 3 SECTION 7.3
REPLACE OLD
"Assignment operators may only be used with blocking assignments"
WITH NEW
An assignment operator is semantically equivalent to a blocking assignment,
with the exception that any left hand side index expression
is only evaluated once. For example:
a[i]+=2; // same as a[i] = a[i] +2;

REPLACE THIRD PARAGRAPH WITH 2 NEW
The semantics of such an assignment expression are those of a function
which evaluates the right hand side, casts the right hand side to the left
hand data type, stacks it, updates the left hand side and returns the
stacked value.

SystemVerilog also includes the C incrementor and decrementor operators
++i, --i, i++, and i--. These do not need parentheses when used in
expressions. These increment and decrement operations behave as blocking
assignments.



This archive was generated by hypermail 2b28 : Sun Mar 16 2003 - 13:52:37 PST