From: Sebastien Bourdeauducq Date: Sun, 30 Jun 2013 12:31:25 +0000 (+0200) Subject: genlib/misc: remove bitreverse X-Git-Tag: 24jan2021_ls180~2099^2~543 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9c59ea1e26a1b1197b8cf2b5ea7831158138b2be;p=litex.git genlib/misc: remove bitreverse --- diff --git a/migen/genlib/misc.py b/migen/genlib/misc.py index 1130829c..97d0be0e 100644 --- a/migen/genlib/misc.py +++ b/migen/genlib/misc.py @@ -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