mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
plumbing: use Record.connect in Multiplexer/ Demultiplexer
This commit is contained in:
parent
7e2859f43f
commit
416c8af1e2
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue