Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: c7b9dfc203
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (12 sloc) 0.318 kb
from migen.fhdl.structure import *
def multimux(sel, inputs, output):
n = len(inputs)
i = 0
comb = []
for osig in output:
choices = [x[i] for x in inputs]
cases = [[Constant(j,, osig.eq(choices[j])] for j in range(n)]
cases[n-1][0] = Default()
comb.append(Case(sel, *cases))
i += 1
return comb
Jump to Line
Something went wrong with that request. Please try again.