Re: signed types & case statement expressions.


Subject: Re: signed types & case statement expressions.
From: Stefen Boyd (stefen@boyd.com)
Date: Tue Oct 09 2001 - 16:54:15 PDT


At 03:41 PM 10/9/2001 -0700, Krishna Garlapati wrote:
>My question is should "in", be sign extended or 0 extended.
>I felt sign extension would be logical given the fact that
>"in" is a signed type, but the simulator's I tested this on
>seem to be doing a 0 extension.

I'm not sure which simulators you used, but systemsim
seems to sign extend. See attached log and the file I
used for testing (I added a tiny testbench to your example).

Regards,

Stefen

--------------------
Stefen Boyd Boyd Technology, Inc.
stefen@BoydTechInc.com (408)739-BOYD
www.BoydTechInc.com (408)739-1402 (fax)





This archive was generated by hypermail 2b28 : Tue Oct 09 2001 - 17:10:56 PDT