From b4613d913f1640040d8c40540296ebf5cd9a5935 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 13 Jul 2012 17:17:20 +0200 Subject: [PATCH] bus/wishbone: remove use of deprecated multimux --- migen/bus/wishbone.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/migen/bus/wishbone.py b/migen/bus/wishbone.py index b34c9363..49bd5e4b 100644 --- a/migen/bus/wishbone.py +++ b/migen/bus/wishbone.py @@ -1,6 +1,6 @@ from migen.fhdl.structure import * from migen.corelogic import roundrobin -from migen.corelogic.misc import multimux, optree +from migen.corelogic.misc import optree from migen.bus.simple import * from migen.bus.transactions import * from migen.sim.generic import Proxy, PureSimulable @@ -37,10 +37,9 @@ class Arbiter: comb = [] # mux master->slave signals - m2s_names = _desc.get_names(M_TO_S) - m2s_masters = [[getattr(m, name) for name in m2s_names] for m in self.masters] - m2s_target = [getattr(self.target, name) for name in m2s_names] - comb += multimux(self.rr.grant, m2s_masters, m2s_target) + for name in _desc.get_names(M_TO_S): + choices = Array(getattr(m, name) for m in self.masters) + comb.append(getattr(self.target, name).eq(choices[self.rr.grant])) # connect slave->master signals for name in _desc.get_names(S_TO_M): -- 2.30.2