RE: right operand for shift operators


Subject: RE: right operand for shift operators
From: Martin O'Leary (oleary@cadence.com)
Date: Mon Jun 03 2002 - 15:54:42 PDT


Sri,
my take is that in this regard we need to be consistent with
Verilog-D and do what-ever it does.
Perhaps someone can experiment with this on Verilog-XL if
the Verilog LRM is unclear.
Thanks,
--Martin

> -----Original Message-----
> From: Srikanth Chandrasekaran [mailto:schandra@asc.corp.mot.com]
> Sent: Saturday, May 25, 2002 2:02 AM
> To: Verilog-AMS Committee
> Subject: right operand for shift operators
>
>
> Hi,
>
> LRM states that the right operand of the shift operator is
> treated as unsigned
> number. What does this exactly mean?
>
> Does it mean that the negative number is cast as unsigned
> integer when solving
> for the shift operator?? Also what happens to the vacated
> positions? Is it
> always filled with 0's. If so, its a bit different from the C
> std definition
> of these shift operators.
>
> cheers,
> Sri
> --
> Srikanth Chandrasekaran
> Global Software Group, EDA SBU
> Motorola Australia.
> Phone: +61-8-8168 3592 Fax: x3501
>



This archive was generated by hypermail 2b28 : Mon Jun 03 2002 - 15:57:14 PDT