Comments (3)
Please be aware that the current version of Berkeley HardFloat is still preliminary and largely unsupported.
That said, you can up-convert your 32-bit floating-point inputs to 64 bits, then use 'DivSqrtRecF64ToRaw_mulAddZ31' to create a 64-bit-compatible "raw" output, and lastly round to the 32-bit format. With the recoded format used by Berkeley HardFloat, up-conversions done by 'RecFNToRecFN(8, 24, 11, 53)' are extremely cheap. The rounding of the 64-bit-compatible "raw" result can be done either by 'RoundAnyRawFNToRecFN(11, 55, 8, 24, __)' or by 'resizeRawFN(8, 26, x)' followed by 'RoundRawFNToRecFN(8, 24, )'. If you don't know what options to fill in for "", 0 is always safe.
from berkeley-hardfloat.
GitHub converted my underscore characters to bold font on this Web page. If that makes it harder to read my response, you can always try complaining to the brainless robot (and see how far it gets you).
from berkeley-hardfloat.
Thanks for the answer, John.
I saw that the rocket chip had implemented the single precision DIV/SQRT in the same way as you said. This would solve the problem but because of the limited chip area, we couldn't support 64bit floating point operation yet.
An open source hardfloat is really helpful for the open source chip ecosystem and I hope we could keep on improving it.
from berkeley-hardfloat.
Related Issues (20)
- Recode format
- Printing value
- Do you plan to upload a document of the implementation details of this FPU? HOT 1
- Question about arbitrary precision support HOT 5
- Can you provide a detailed explanation of floating point division? The code is too hard to read. HOT 2
- Where is hardfloat code HOT 1
- Mult for Mantissa HOT 1
- make error
- compilation error HOT 4
- Why RawModule instead of Module? HOT 3
- chisel3.Driver.execute is deprecated HOT 4
- Recoded format HOT 3
- The algorithm used in DivSqrtRecF64_mulAddZ31 to calculate square-root HOT 1
- Is Recoded Format more hardware-friendly for denormal numbers than IEEE754 format?
- How to compile it to verilog! HOT 1
- sbt test fail HOT 1
- "Recoded Format" table in README.md is incorrect
- Potentially incorrect execution with negative zeros HOT 12
- How to include in my own projects? HOT 2
- dependencies issue HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from berkeley-hardfloat.