projects
/
nmutil.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c49e1ce
)
remove redundant comments/docs
author
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 23 Dec 2021 00:25:57 +0000
(16:25 -0800)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 23 Dec 2021 00:25:57 +0000
(16:25 -0800)
src/nmutil/grev.py
patch
|
blob
|
history
diff --git
a/src/nmutil/grev.py
b/src/nmutil/grev.py
index b0dab4bbc3a3ea2eef1584d64ae96d0b33f250d3..1ca501fb4a64e9a96884f1242a93dcc3c125ae9f 100644
(file)
--- a/
src/nmutil/grev.py
+++ b/
src/nmutil/grev.py
@@
-20,8
+20,7
@@
from nmigen.cli import rtlil
def grev(inval, chunk_sizes, log2_width):
def grev(inval, chunk_sizes, log2_width):
- """XXX start comments here with no space
- Python reference implementation of generalized bit-reverse.
+ """Python reference implementation of generalized bit-reverse.
See `GRev` for documentation.
"""
# mask inputs into range
See `GRev` for documentation.
"""
# mask inputs into range
@@
-74,10
+73,10
@@
class GRev(Elaboratable):
self.reverse_order = reverse_order # reverses the order of steps
self.log2_width = log2_width
self.width = 1 << log2_width
self.reverse_order = reverse_order # reverses the order of steps
self.log2_width = log2_width
self.width = 1 << log2_width
- self.input = Signal(self.width)
# XXX mark this as an input
+ self.input = Signal(self.width)
# XXX is this an input or output?
self.chunk_sizes = Signal(log2_width)
# XXX is this an input or output?
self.chunk_sizes = Signal(log2_width)
- self.output = Signal(self.width)
# XXX mark this as the output
+ self.output = Signal(self.width)
def elaborate(self, platform):
m = Module()
def elaborate(self, platform):
m = Module()