Coder Social home page Coder Social logo

Comments (3)

jhauser-ucberkeley avatar jhauser-ucberkeley commented on July 25, 2024

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.

jhauser-ucberkeley avatar jhauser-ucberkeley commented on July 25, 2024

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.

ShawnLess avatar ShawnLess commented on July 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.