corelogic/misc/multimux: less confusing variable name
This commit is contained in:
parent
7894411418
commit
e10e4360f3
|
@ -4,14 +4,14 @@ from migen.fhdl.structure import _Operator
|
||||||
def multimux(sel, inputs, output):
|
def multimux(sel, inputs, output):
|
||||||
n = len(inputs)
|
n = len(inputs)
|
||||||
i = 0
|
i = 0
|
||||||
comb = []
|
statements = []
|
||||||
for osig in output:
|
for osig in output:
|
||||||
choices = [x[i] for x in inputs]
|
choices = [x[i] for x in inputs]
|
||||||
cases = [[Constant(j, sel.bv), osig.eq(choices[j])] for j in range(n)]
|
cases = [[Constant(j, sel.bv), osig.eq(choices[j])] for j in range(n)]
|
||||||
cases[n-1][0] = Default()
|
cases[n-1][0] = Default()
|
||||||
comb.append(Case(sel, *cases))
|
statements.append(Case(sel, *cases))
|
||||||
i += 1
|
i += 1
|
||||||
return comb
|
return statements
|
||||||
|
|
||||||
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:
|
||||||
|
|
Loading…
Reference in New Issue