From: Florent Kermarrec Date: Mon, 4 Nov 2013 12:46:37 +0000 (+0100) Subject: plumbing: use Record.connect in Multiplexer/ Demultiplexer X-Git-Tag: 24jan2021_ls180~2099^2~447 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=416c8af1e23fd1dae8f2f593145efd251478b334;p=litex.git plumbing: use Record.connect in Multiplexer/ Demultiplexer --- diff --git a/migen/flow/plumbing.py b/migen/flow/plumbing.py index b9505990..5c48af3d 100644 --- a/migen/flow/plumbing.py +++ b/migen/flow/plumbing.py @@ -67,7 +67,7 @@ class Multiplexer(Module): case = {} for i, sink in enumerate(sinks): - cases[i] = self.source.connect(sink) + cases[i] = Record.connect(sink, self.source) self.comb += Case(self.sel, cases) class Demultiplexer(Module): @@ -85,7 +85,7 @@ class Demultiplexer(Module): cases = {} for i, source in enumerate(sources): - cases[i] = source.connect(self.sink) + cases[i] = Record.connect(self.sink, source) self.comb += Case(self.sel, cases) # Actors whose layout should be inferred from what their single sink is connected to.