Re: [sv-bc] another signing question

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Thu May 18 2006 - 01:28:18 PDT
  

Yes, (c < 0).  For example, when a == 8'h01 and b = 8'hFF.

________________________________

From: owner-sv-bc@eda.org [mailto:owner-sv-bc@eda.org] On Behalf Of
Bresticker, Shalom
Sent: Thursday, May 18, 2006 12:31 AM
To: sv-bc@eda.org
Subject: [sv-bc] another signing question

 

Consider:

logic [7:0] a,b;

logic signed [7:0] c ;

assign c = a * b ;

 

I understand that a * b is unsigned and that c is signed.

If the MSB of a*b is 1, does c become a negative number?

 

Thanks,

Shalom

 

Shalom Bresticker

Intel Jerusalem LAD DA

+972 2 589-6852

+972 54 721-1033

I don't represent Intel 

 



image001.gif
Received on Thu May 18 01:29:39 2006

This archive was generated by hypermail 2.1.8 : Thu May 18 2006 - 01:29:57 PDT