From: Luke Kenneth Casson Leighton Date: Mon, 4 Mar 2019 02:34:35 +0000 (+0000) Subject: remove chain dependence, calculate ediffs in parallel with comparisons X-Git-Tag: ls180-24jan2020~1747 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4750a653a71017c4169fe0064bae6a700e6a463;p=ieee754fpu.git remove chain dependence, calculate ediffs in parallel with comparisons --- 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)