Result type of assignment operator


Subject: Result type of assignment operator
From: Dave Rich (David.Rich@synopsys.com)
Date: Thu Dec 26 2002 - 11:46:12 PST


SystemVerilog add the ability to use the result of an assignment
operation in an expression, but does not specify what type is returned.
I propose that the LHS determine the type. This is the same as ANSI C.

Add after the last paragraph in section 7.3:

The type returned by an assignment operator shall be the type of the
LHS. If the LHS is a concatenation, the type returned shall be an
unsigned integral value whose bit length is the sum of its operands.

-- 
--
Dave Rich
Principal Engineer, CAE, VTG
Tel:  650-584-4026
Cell: 510-589-2625
DaveR@Synopsys.com



This archive was generated by hypermail 2b28 : Thu Dec 26 2002 - 11:46:46 PST