From 053c0fe7295bb026ab8dd7e0d3453e4bdf1aba19 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 29 May 2020 22:38:28 +0100 Subject: [PATCH] module comments for popcount --- src/soc/fu/logical/popcount.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/soc/fu/logical/popcount.py b/src/soc/fu/logical/popcount.py index d655b551..e2a28207 100644 --- a/src/soc/fu/logical/popcount.py +++ b/src/soc/fu/logical/popcount.py @@ -1,5 +1,8 @@ -# Popcount -from nmigen import (Elaboratable, Module, Signal, Cat, Mux, Const) +# Popcount: a successive (cascading) sum-reduction algorithm starting from +# single-bit adds and reducing down to one final answer: the total number of +# bits set to "1" in the input. + +from nmigen import (Elaboratable, Module, Signal, Cat, Const) def array_of(count, bitwidth): -- 2.30.2