From 94d69ca951c3c162973500f3ceb6b00d4b4a57f6 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 11 Dec 2021 15:57:05 +0000 Subject: [PATCH] more comments reason: understanding lambda networks (aka butterfly aka generalised-rev) is a bit of a pig --- src/nmutil/grev.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nmutil/grev.py b/src/nmutil/grev.py index 4f19dd1..a0c3555 100644 --- a/src/nmutil/grev.py +++ b/src/nmutil/grev.py @@ -38,6 +38,8 @@ class GRev(Elaboratable): return Signal(self.width, name=f"step{i}") _steps = [step(i) for i in range(self.log2_width)] + # TODO: comment that this creates a full combinatorial chain + # of RADIX-2 butterfly-network "swappers" for i, step_o in enumerate(_steps): step_i = self.input if i == 0 else _steps[i - 1] # TODO explain that chunk swap-sizes jump by a power2 each time -- 2.30.2