From: Luke Kenneth Casson Leighton Date: Mon, 27 Jan 2020 11:27:13 +0000 (+0000) Subject: reverse indices X-Git-Tag: ls180-24jan2020~335 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c38864db8f47726c1de1afab75f5f4d34535ff15;p=ieee754fpu.git reverse indices --- diff --git a/src/ieee754/part_cmp/equal.py b/src/ieee754/part_cmp/equal.py index 2eb46043..a64b3a00 100644 --- a/src/ieee754/part_cmp/equal.py +++ b/src/ieee754/part_cmp/equal.py @@ -43,10 +43,12 @@ class PartitionedEq(Elaboratable): comb += eqs.eq(Cat(*eql)) # now, based on the partition points, create the (multi-)boolean result + # this is a terrible way to do it, it's very laborious. however it + # will actually "work". optimisations come later eqsigs = [] idxs = list(range(self.mwidth)) - #idxs.reverse() - for i in idxs: + idxs.reverse() + for i in range(self.mwidth): eqsig = Signal(name="eqsig%d"%i, reset_less=True) eqsigs.append(eqsig) for i in idxs: