From 9c59ea1e26a1b1197b8cf2b5ea7831158138b2be Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 30 Jun 2013 14:31:25 +0200 Subject: [PATCH] genlib/misc: remove bitreverse --- migen/genlib/misc.py | 6 ------ 1 file changed, 6 deletions(-) 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 -- 2.30.2