From a4750a653a71017c4169fe0064bae6a700e6a463 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 4 Mar 2019 02:34:35 +0000 Subject: [PATCH] remove chain dependence, calculate ediffs in parallel with comparisons --- src/add/nmigen_add_experiment.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 997c2120..ee595969 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -377,8 +377,8 @@ class FPAddAlignSingleMod: m.d.comb += ediff.eq(self.in_a.e - self.in_b.e) m.d.comb += ediffr.eq(self.in_b.e - self.in_a.e) - m.d.comb += elz.eq(ediff < 0) - m.d.comb += egz.eq(ediff > 0) + m.d.comb += elz.eq(self.in_a.e < self.in_b.e) + m.d.comb += egz.eq(self.in_a.e > self.in_b.e) # default: A-exp == B-exp, A and B untouched (fall through) m.d.comb += self.out_a.copy(self.in_a) -- 2.30.2