note that clz is identical to PriorityEncoder (which already exists)
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 19 May 2020 16:27:31 +0000 (17:27 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 19 May 2020 16:27:31 +0000 (17:27 +0100)
src/nmutil/clz.py

index fed98cf44ed40b58505458d2b2549807540a5850..2c40988988cd083294bbdd779bbb076bd72132ec 100644 (file)
@@ -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):