projects
/
nmutil.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f2b6be5
)
clean up rest of grev.py docs
author
Jacob Lifshay
<programmerjake@gmail.com>
Fri, 17 Dec 2021 03:27:06 +0000
(19:27 -0800)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Fri, 17 Dec 2021 03:27:06 +0000
(19:27 -0800)
src/nmutil/grev.py
patch
|
blob
|
history
diff --git
a/src/nmutil/grev.py
b/src/nmutil/grev.py
index 49d8e6de1ec81fa44c352fa253b89543e3feb8f7..1b90685904ea76df392af7f44cf5810d693d1f21 100644
(file)
--- a/
src/nmutil/grev.py
+++ b/
src/nmutil/grev.py
@@
-1,10
+1,9
@@
# SPDX-License-Identifier: LGPL-3-or-later
# SPDX-License-Identifier: LGPL-3-or-later
-#
See Notices.txt for copyright information
+#
Copyright Jacob Lifshay
-# TODO add funding and explicit copyright notice (contractually required by
-# NGI POINTER)
+# TODO(lkcl): add NGI POINTER funding notice, idk what we need for that...
-# TODO link to bugreport
+"""Generalized bit-reverse. See `GRev` for docs."""
from nmigen.hdl.ast import Signal
from nmigen.hdl.dsl import Module
from nmigen.hdl.ast import Signal
from nmigen.hdl.dsl import Module
@@
-43,6
+42,8
@@
def grev(input, chunk_sizes, log2_width):
class GRev(Elaboratable):
""" Generalized bit-reverse.
class GRev(Elaboratable):
""" Generalized bit-reverse.
+ https://bugs.libre-soc.org/show_bug.cgi?id=755
+
A generalized bit-reverse is where every output bit is the input bit at
index `output_bit_index XOR chunk_sizes` where `chunk_sizes` is the
control input.
A generalized bit-reverse is where every output bit is the input bit at
index `output_bit_index XOR chunk_sizes` where `chunk_sizes` is the
control input.