Unofficial Hacker News client - receive Push Notifications on replies.

Beating Floating Point at Its Own Game: Posit Arithmetic [pdf] (opens external site)

101 points by xenophonf 2 days ago | www.johngustafson.net | 33 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (1)

  1. So I have actually done this as part of a team, and for 32-bit IEEE-fp and 32-bit posit(0), the FPGA layout for posit multiply was larger (due to the longer multiplier) but the FPGA layout for posit add was smaller (due to not having to handle corner cases like denormals, NaN). We did not try posit ES=1 or posit ES=2, and admittedly the verilog I emitted was NOT optimized with better LUTs or muxes. You can see the emitted verilog code for the multiplier for 8-bits here:

    https://github.com/interplanetary-robot/mullinengine/blob/ma...

    At the time IEEE-16 vs posit-16 was not really a thing yet, so I can't say if the multiplication would be worse because the extended size of the multiplier is not as dramatic as it is with posit-32, and the special-case handling (denormals, NaNs) is expensive.