Coder Social home page Coder Social logo

Comments (8)

aswaterman avatar aswaterman commented on June 26, 2024

There are two. DivSqrtRecF64 uses a quadratically convergent iterative algorithm, using a pre-multiplication to get a 10-ish-bit initial approximation. DivSqrtRecFN_small uses a straightforward one-bit-at-a-time algorithm.

from berkeley-hardfloat.

sally-aha avatar sally-aha commented on June 26, 2024

Then how can I choose which one to use? Which performs better?
And does DivSqrtRecFN_small use SRT? If so, which radix?
Thank you very much for your reply.

from berkeley-hardfloat.

aswaterman avatar aswaterman commented on June 26, 2024

It's too dependent on your application for me to provide an answer. The first option has latency of 25-ish cycles and throughput of 1/3 operations per cycle, but the area cost is high and the clock rate might be limited. The second option has latency of S-ish cycles (where S is the width of the significand) and has throughput of 1/S operations per cycle, but the area cost is low and it can run at higher clock rate.

from berkeley-hardfloat.

aswaterman avatar aswaterman commented on June 26, 2024

DivSqrtRecFN_small doesn't use SRT; it's just one bit at a time.

from berkeley-hardfloat.

JonnySmith0011 avatar JonnySmith0011 commented on June 26, 2024

Does DivSqrtRecF64 use algorithm of Goldschmidt or Newton-Raphson? @aswaterman
And did you consider using the mainstream SRT algorithm?

from berkeley-hardfloat.

liwt07 avatar liwt07 commented on June 26, 2024

Hi, I want to generate the Verilog of the division. Could you please tell me how to generate Verilog from hardfloat files? Thank you so much.

from berkeley-hardfloat.

aamartin0000 avatar aamartin0000 commented on June 26, 2024

The original Verilog code is still available here: http://www.jhauser.us/arithmetic/HardFloat.html

from berkeley-hardfloat.

sequencer avatar sequencer commented on June 26, 2024

FYI. I had a bare configurable SRT in sequencer/arithmetic. I'll find some time to PR hardfloat this year.

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.