genlib/misc: remove bitreverse
This commit is contained in:
parent
a255296171
commit
9c59ea1e26
|
@ -1,12 +1,6 @@
|
|||
from migen.fhdl.std import *
|
||||
from migen.fhdl.tools import value_bits_sign
|
||||
from migen.fhdl.structure import _Operator
|
||||
|
||||
def bitreverse(s):
|
||||
length, signed = value_bits_sign(s)
|
||||
l = [s[i] for i in reversed(range(length))]
|
||||
return Cat(*l)
|
||||
|
||||
def optree(op, operands, lb=None, ub=None, default=None):
|
||||
if lb is None:
|
||||
lb = 0
|
||||
|
|
Loading…
Reference in New Issue