Re: [sv-bc] MERGE REVIEW draft 2: Chapter 11

From: Brad Pierce <Brad.Pierce_at_.....>
Date: Thu Apr 12 2007 - 08:57:24 PDT
>Brad's tool seemed to really do zero-extension

No, sorry for the confusing way I said it.  (I should have used
subjunctive mood.)  I meant that if the LRM were to be believed, the
correct result for

  module m (output reg signed [31:0] o1, o2);
    initial begin
       o1 = ( 1'b0 ? 10'sb0000000000 : 10'sb1111111110 ) ;
       $displayb(o1);
       o2 = ( 1'b0 ? 10'sb0000000000 : 9'sb111111110 ) ;
       $displayb(o2);
    end
  endmodule

would be

  11111111111111111111111111111110
  00000000000000000000000111111110

But I didn't actually believe the LRM on that point.

-- Brad





-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Apr 12 08:58:20 2007

This archive was generated by hypermail 2.1.8 : Thu Apr 12 2007 - 08:59:17 PDT