Re: [sv-bc] another signing question

From: Paul Graham <pgraham_at_.....>
Date: Thu May 18 2006 - 03:44:31 PDT
> 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?

Yes.  This is no different than standard verilog (substitute
'wire' for 'logic').

Paul
Received on Thu May 18 03:44:24 2006

This archive was generated by hypermail 2.1.8 : Thu May 18 2006 - 03:44:35 PDT