URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [or1ksim/] [softfloat/] [README] - Rev 478
Go to most recent revision | Compare with Previous | Blame | View Log
SoftFloatThis provides a software implementation of functions performing floating pointoperations according to the IEEE 754 standard.It is used in or1ksim due to problems arising when using the simulator hostmachine's floating point unit to perform single precision floating pointcalculations (or even double, in some cases.) Typically the host machine's FPUwill support extended (80-bit), or higher, precision, resulting in values whichcan differ from those which are calculated on a true single or double precisionfloating point unit (very small differences when in rounding and generatingstatus flags.)Although using a software implementation is slow, it ensures an accuratesimulation of a single or double precision floating point unit.This software was sourced from the author's (John Hauser) site:http://www.jhauser.us/arithmetic/SoftFloat.htmlNote that the code cannot be compiled with -O0 for debugging purpose, becauseof the approach used to code inlining. Additional macros have been added toease this problem. For debugging purposes, Or1ksim should be configured addingCFLAGS="-O0 -DINLINE=static -DNO_SOFTFLOAT_UNUSED" to the configure line.Julius Baxter, August 1, 2010Jeremy Bennett, August 4, 2010 (-O0 compilation)
Go to most recent revision | Compare with Previous | Blame | View Log
