BTF B19 - Result type of Arithmetic Shift operator

From: Tom Fitzpatrick (tfitz@cadence.com)
Date: Mon Aug 31 1998 - 06:41:28 PDT


BAD MSG:
Hi All,
-Lines: 23
Content-Type: text/plain; charset="us-ascii"
Content-Length: 906
X-Status: $$$$
X-UID: 0000000622
Status: RO

It was pointed out to me by a colleague that the B19 proposal neglected to
specify the type of output supplied by the new arithmetic shift operator. I
would like to remedy that now.

I propose that the result of both arithmetic and logical shift operators
shall be the same type as the left-hand operand of the shift operation.

The other alternative is for arithmetic shifts to produce a signed result,
and logical shifts to produce an unsigned result, regardless of the operands.

At the moment, I'm really on the fence about this one. Any suggestions one
way or the other?

Thanks,
-Tom

---------------
Tom Fitzpatrick

Senior Technical Marketing Manager Cadence Design Systems, Inc.
Cycle Simulation Products 270 Billerica Rd.
Logic Design and Verification Business Unit Chelmsford, MA 01824
x6438 (978)446-6438



This archive was generated by hypermail 2.1.4 : Mon Jul 08 2002 - 12:52:59 PDT and
sponsored by Boyd Technology, Inc.