From: Luke Kenneth Casson Leighton Date: Tue, 19 Feb 2019 05:39:14 +0000 (+0000) Subject: comment for a + -a special case add X-Git-Tag: ls180-24jan2020~1876 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47115959f204429fdbe22446e40b64ae6c6a79be;p=ieee754fpu.git comment for a + -a special case add --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 7d9ccb71..38cd8d78 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -88,6 +88,7 @@ class FPADD(FPBase): m.next = "put_z" m.d.sync += z.create(a.s, a.e, a.m[3:-1]) + # if a equal to -b return zero (+ve zero) with m.Elif((a.s != b.s) & (a.m == b.m) & (a.e == b.e)): m.next = "put_z" m.d.sync += z.zero(0)