Re: errata/140 and errata/192: real values vs integer values

From: Kurt Baty (kurt@wsfdb.wsfdb.com)
Date: Tue May 13 2003 - 06:26:18 PDT

  • Next message: Shalom Bresticker: "Re: errata/140 and errata/192: real values vs integer values"

    Precedence: bulk

    > From Shalom.Bresticker@motorola.com Tue May 13 08:09:55 2003

    > I ran this in VCS. Results attached.

    some quick editing of the log files shows that
    the results are all in agreement for an integer "/"
    with trucation.

    should the integer results of "**" be as if
    the last step (in the negetive exponent cases)
    was an integer "/" with trucation?

    so that 2 ** -1 = 0 not 1?

            kurt

    wsfdb% diff vxl_results vcs_results
    1c1
    < VERILOG-XL 4.00.s003 log file created May 13, 2003 07:19:19

    ---
    > Compiler version 6.2R10; Runtime version 6.2R10;  May 13 16:13 2003
    14c14
    < 4 / 3 as int = 1 as real = 1 = 1.333333333333333
    ---
    > 4 / 3 as int = 1 as real = 1 = 1.33333
    16,17c16,17
    < 2 / 3 as int = 0 as real = 1 = 0.6666666666666666
    < 1 / 3 as int = 0 as real = 0 = 0.3333333333333333
    ---
    > 2 / 3 as int = 0 as real = 1 = 0.666667
    > 1 / 3 as int = 0 as real = 0 = 0.333333
    19,20c19,20
    < -1 / 3 as int = 0 as real = 0 = -0.3333333333333333
    < -2 / 3 as int = 0 as real = -1 = -0.6666666666666666
    ---
    > -1 / 3 as int = 0 as real = 0 = -0.333333
    > -2 / 3 as int = 0 as real = -1 = -0.666667
    22c22
    < -4 / 3 as int = -1 as real = -1 = -1.333333333333333
    ---
    > -4 / 3 as int = -1 as real = -1 = -1.33333
    41,44c41,44
    < 4 / 0 as int = x as real = 0 = Infinity
    < 3 / 0 as int = x as real = 0 = Infinity
    < 2 / 0 as int = x as real = 0 = Infinity
    < 1 / 0 as int = x as real = 0 = Infinity
    ---
    > 4 / 0 as int = x as real = 0 = Inf
    > 3 / 0 as int = x as real = 0 = Inf
    > 2 / 0 as int = x as real = 0 = Inf
    > 1 / 0 as int = x as real = 0 = Inf
    46,49c46,49
    < -1 / 0 as int = x as real = 0 = -Infinity
    < -2 / 0 as int = x as real = 0 = -Infinity
    < -3 / 0 as int = x as real = 0 = -Infinity
    < -4 / 0 as int = x as real = 0 = -Infinity
    ---
    > -1 / 0 as int = x as real = 0 = -Inf
    > -2 / 0 as int = x as real = 0 = -Inf
    > -3 / 0 as int = x as real = 0 = -Inf
    > -4 / 0 as int = x as real = 0 = -Inf
    68c68
    < 4 / -3 as int = -1 as real = -1 = -1.333333333333333
    ---
    > 4 / -3 as int = -1 as real = -1 = -1.33333
    70,71c70,71
    < 2 / -3 as int = 0 as real = -1 = -0.6666666666666666
    < 1 / -3 as int = 0 as real = 0 = -0.3333333333333333
    ---
    > 2 / -3 as int = 0 as real = -1 = -0.666667
    > 1 / -3 as int = 0 as real = 0 = -0.333333
    73,74c73,74
    < -1 / -3 as int = 0 as real = 0 = 0.3333333333333333
    < -2 / -3 as int = 0 as real = 1 = 0.6666666666666666
    ---
    > -1 / -3 as int = 0 as real = 0 = 0.333333
    > -2 / -3 as int = 0 as real = 1 = 0.666667
    76c76
    < -4 / -3 as int = 1 as real = 1 = 1.333333333333333
    ---
    > -4 / -3 as int = 1 as real = 1 = 1.33333
    86c86
    < End of VERILOG-XL 4.00.s003   May 13, 2003  07:19:21
    ---
    >            V C S   S i m u l a t i o n   R e p o r t 
    wsfdb% 
    


    This archive was generated by hypermail 2.1.4 : Tue May 13 2003 - 06:34:31 PDT and
    sponsored by Boyd Technology, Inc.