From: Sebastien Bourdeauducq Date: Fri, 13 Jul 2012 16:05:57 +0000 (+0200) Subject: corelogic/misc: remove multimux X-Git-Tag: 24jan2021_ls180~2099^2~861 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c169a99df695fe3e2290ea59f13796f15d80ae7;p=litex.git corelogic/misc: remove multimux --- diff --git a/migen/corelogic/misc.py b/migen/corelogic/misc.py index 5c8bae4c..ddec4225 100644 --- a/migen/corelogic/misc.py +++ b/migen/corelogic/misc.py @@ -1,20 +1,6 @@ from migen.fhdl.structure import * from migen.fhdl.structure import _Operator -# multimux is deprecated - use Array instead -# TODO: remove uses of multimux -def multimux(sel, inputs, output): - n = len(inputs) - i = 0 - statements = [] - for osig in output: - choices = [x[i] for x in inputs] - cases = [[Constant(j, sel.bv), osig.eq(choices[j])] for j in range(n)] - cases[n-1][0] = Default() - statements.append(Case(sel, *cases)) - i += 1 - return statements - def optree(op, operands, lb=None, ub=None, default=None): if lb is None: lb = 0