From c38864db8f47726c1de1afab75f5f4d34535ff15 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 27 Jan 2020 11:27:13 +0000 Subject: [PATCH] reverse indices --- src/ieee754/part_cmp/equal.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: -- 2.30.2