From: Dennis Marsa (drm@xilinx.com)
Date: Mon May 05 2003 - 12:11:00 PDT
Precedence: bulk
Kurt Baty wrote:
>
> Precedence: bulk
>
> > From drm@xilinx.com Mon May 5 13:41:55 2003
> >
> > > 2 ** -1 = 1 = 0.5
> > > -2 ** -1 = -1 = -0.5
> >
>
> please note that:
>
> initial
> begin
> x_real = 0.5;
> x = x_real;
> $display("x = %0d = x_real =",x,x_real);
> $display;
> for(y=limit;y>=-limit;y=y-1) begin
>
> displays:
>
> Highest level modules:
> ieee_etf_140_test
>
> x = 1 = x_real =0.5
I am not sure what you are trying to convey with that
first $display statement before the main loop in your
test program.
Are you trying to show that reals are being rounded
to nearest as opposed to being rounded towards zero?
I had figured the results
2 ** -1 = 1
-2 ** -1 = -1
were a result of rounding to nearest.
But, my specific question is, are these the results you are
advocating for these particular operands?
From James' email today and from the discussion this morning, I had
thought the desired results would be:
2 ** -1 = 0
-2 ** -1 = 0
Dennis
This archive was generated by hypermail 2.1.4
: Mon May 05 2003 - 12:11:51 PDT
and
sponsored by Boyd Technology, Inc.