projects
/
nmutil.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f5736b
)
note that clz is identical to PriorityEncoder (which already exists)
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 19 May 2020 16:27:31 +0000
(17:27 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Tue, 19 May 2020 16:27:31 +0000
(17:27 +0100)
src/nmutil/clz.py
patch
|
blob
|
history
diff --git
a/src/nmutil/clz.py
b/src/nmutil/clz.py
index fed98cf44ed40b58505458d2b2549807540a5850..2c40988988cd083294bbdd779bbb076bd72132ec 100644
(file)
--- a/
src/nmutil/clz.py
+++ b/
src/nmutil/clz.py
@@
-1,5
+1,7
@@
from nmigen import Module, Signal, Elaboratable, Cat, Repl
import math
+""" TODO: replace this module with PriorityEncoder
+"""
class CLZ(Elaboratable):
def __init__(self, width):