From df2ba02a93bd75d1026ab8d6a505d819494d147f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 12 Dec 2021 14:35:07 +0000 Subject: [PATCH] whoops just step through i not list --- src/nmutil/grev.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nmutil/grev.py b/src/nmutil/grev.py index c5206e6..3b2971c 100644 --- a/src/nmutil/grev.py +++ b/src/nmutil/grev.py @@ -36,9 +36,9 @@ class GRev(Elaboratable): # TODO: comment that this creates a full combinatorial chain # of RADIX-2 butterfly-network "swappers" - for i, step_o in enumerate(_steps): + for i in range(self.log2_width): step_o = Signal(self.width, name="step_%d" % i) - _steps.append(step_o) + _steps.append(step_o) # accumulate steps (test purposes only) # TODO explain that chunk swap-sizes jump by a power2 each time chunk_size = 1 << i # TODO comment that this is creating the mux-swapper -- 2.30.2