From 416c8af1e23fd1dae8f2f593145efd251478b334 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 4 Nov 2013 13:46:37 +0100 Subject: [PATCH] plumbing: use Record.connect in Multiplexer/ Demultiplexer --- migen/flow/plumbing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.30.2