FPU: Do masking after adder rather than on A input
authorPaul Mackerras <paulus@ozlabs.org>
Sat, 12 Sep 2020 10:13:24 +0000 (20:13 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Sat, 12 Sep 2020 10:13:24 +0000 (20:13 +1000)
commit73f819301ba25ddc3855bba8e2f3334ca70b5aef
tree293f07558c9cac6466e9e40442f757362d0217c7
parente1ca023bad2d11a9ae16da14b327a1329a6f50d9
FPU: Do masking after adder rather than on A input

The masking enabled by opsel_amask is only used when rounding, to trim
the rounded result to the required precision.  We now do the masking
after the adder rather than before (on the A input).  This gives the
same result and helps timing.  The path from r.shift through the mask
generator and adder to v.r was showing up as a critical path.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
fpu.vhdl