errata/428: PROPOSAL - 2.5.1, value of 16'shc, request for clarification

From: Brad.Pierce@synopsys.com
Date: Wed Aug 27 2003 - 14:39:37 PDT

  • Next message: etf@boyd.com: "errata/428: PROPOSAL - 2.5.1, value of 16'shc, request for clarification"

    Precedence: bulk

    In Example 4 of 2.5.1

    REPLACE

    reg[11:0] a, b, c, d;
    initial begin
           a = 'h x; // yields xxx
           b = 'h 3x; // yields 03x
           c = 'h z3; // yields zz3
           d = 'h 0z3; // yields 0z3
    end
    reg [84:0] e, f, g;

           e = 'h5; // yields {82{1'b0}, 3'b101}
           f = 'hx; // yields {85{1'hx}}
           g = 'hz; // yields {85{1'hz}}

    WITH

    reg[11:0] a, b, c, d;
    initial begin
           a = 'h x; // yields 'h xxx
           b = 'h 3x; // yields 'h 03x
           c = 'h z3; // yields 'h zz3
           d = 'h 0z3; // yields 'h 0z3
    end
    reg [84:0] e, f, g;
    reg signed [84:0] h;

           e = 'h5; // yields {{82{1'b0}}, 3'b101}
           f = 'hx; // yields {85{1'bx}}
           g = 'hz; // yields {85{1'bz}}
           h = 16'sb110; // yields {{82{1'b0}, 3'b110}

    http://boydtechinc.com/cgi-bin/issueproposal.pl?cmd=view&pr=428



    This archive was generated by hypermail 2.1.4 : Wed Aug 27 2003 - 14:43:41 PDT and
    sponsored by Boyd Technology, Inc.