Signedness of result of logical shift

From: Brad Pierce (Brad.Pierce@synopsys.com)
Date: Thu Jul 21 2005 - 13:42:21 PDT

  • Next message: Steven Sharp: "Re: Signedness of result of logical shift"

    Is it true that <<< and << are identical in every respect and that
    the results of << and >> are sometimes signed?

    For example, does the following display 1111?

    module test;
    initial begin
      $displayb( (4'sb1111 << 1) >>> 1);
    end
    endmodule

    -- Brad



    This archive was generated by hypermail 2.1.4 : Thu Jul 21 2005 - 13:11:52 PDT and
    sponsored by Boyd Technology, Inc.