From: Luke Kenneth Casson Leighton Date: Sun, 12 Dec 2021 14:35:07 +0000 (+0000) Subject: whoops just step through i not list X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df2ba02a93bd75d1026ab8d6a505d819494d147f;p=nmutil.git whoops just step through i not list --- 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