OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [or1ksim/] [softfloat/] [README] - Blame information for rev 352

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 233 julius
                                SoftFloat
2
 
3
This provides a software implementation of functions performing floating point
4
operations according to the IEEE 754 standard.
5
 
6
It is used in or1ksim due to problems arising when using the simulator host
7
machine's floating point unit to perform single precision floating point
8
calculations (or even double, in some cases.) Typically the host machine's FPU
9
will support extended (80-bit), or higher, precision, resulting in values which
10
can differ from those which are calculated on a true single or double precision
11
floating point unit (very small differences when in rounding and generating
12
status flags.)
13
 
14
Although using a software implementation is slow, it ensures an accurate
15
simulation of a single or double precision floating point unit.
16
 
17
This software was sourced from the author's (John Hauser) site:
18
 
19
http://www.jhauser.us/arithmetic/SoftFloat.html
20
 
21 236 jeremybenn
Note that the code cannot be compiled with -O0 for debugging purpose, because
22
of the approach used to code inlining. Additional macros have been added to
23
ease this problem. For debugging purposes, Or1ksim should be configured adding
24
CFLAGS="-O0 -DINLINE=static -DNO_SOFTFLOAT_UNUSED" to the configure line.
25
 
26 233 julius
Julius Baxter, August 1, 2010
27 236 jeremybenn
Jeremy Bennett, August 4, 2010 (-O0 compilation)

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.