reverse indices
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 27 Jan 2020 11:27:13 +0000 (11:27 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 27 Jan 2020 11:27:16 +0000 (11:27 +0000)
src/ieee754/part_cmp/equal.py

index 2eb4604362eaebfdad4672560e2696ae45138473..a64b3a005defacc0e89e721f93012b15aaa6f1e7 100644 (file)
@@ -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: