From 47115959f204429fdbe22446e40b64ae6c6a79be Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 19 Feb 2019 05:39:14 +0000 Subject: [PATCH] comment for a + -a special case add --- src/add/nmigen_add_experiment.py | 1 + 1 file changed, 1 insertion(+) 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) -- 2.30.2