genlib/misc: remove bitreverse

This commit is contained in:
Sebastien Bourdeauducq 2013-06-30 14:31:25 +02:00
parent a255296171
commit 9c59ea1e26
1 changed files with 0 additions and 6 deletions

View File

@ -1,12 +1,6 @@
from migen.fhdl.std import * from migen.fhdl.std import *
from migen.fhdl.tools import value_bits_sign
from migen.fhdl.structure import _Operator 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): def optree(op, operands, lb=None, ub=None, default=None):
if lb is None: if lb is None:
lb = 0 lb = 0