From: Sebastien Bourdeauducq Date: Sat, 17 Nov 2012 21:25:42 +0000 (+0100) Subject: uio/ioo: fix UnifiedIOSimulation X-Git-Tag: 24jan2021_ls180~2099^2~776 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b6b4c5d70e4501b6be17e0aa331b92d7bc8d3636;p=litex.git uio/ioo: fix UnifiedIOSimulation --- diff --git a/migen/uio/ioo.py b/migen/uio/ioo.py index c95c60ce..67472e21 100644 --- a/migen/uio/ioo.py +++ b/migen/uio/ioo.py @@ -1,6 +1,8 @@ from migen.fhdl.structure import * from migen.flow.actor import * +from migen.actorlib.sim import TokenExchanger, Token from migen.bus import wishbone +from migen.bus.transactions import * from migen.uio.trampoline import Trampoline class UnifiedIOObject(Actor): @@ -19,11 +21,11 @@ class UnifiedIOSimulation(UnifiedIOObject): self.callers = [] self.busname_to_caller_id = {} if dataflow is not None: - self.callers.append(TokenExchanger(self.demux_g(0), self)) + self.callers.append(TokenExchanger(self.dispatch_g(0), self)) for k, v in self.buses.items(): caller_id = len(self.callers) self.busname_to_caller_id[k] = caller_id - g = self.demux_g(caller_id) + g = self.dispatch_g(caller_id) if isinstance(v, wishbone.Interface): caller = wishbone.Initiator(g, v) else: