From: Luke Kenneth Casson Leighton Date: Fri, 29 May 2020 21:38:28 +0000 (+0100) Subject: module comments for popcount X-Git-Tag: div_pipeline~739 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=053c0fe7295bb026ab8dd7e0d3453e4bdf1aba19;p=soc.git module comments for popcount --- 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):