From: Florent Kermarrec Date: Sun, 4 Oct 2015 22:10:55 +0000 (+0200) Subject: interconnect/stream: add missing part of Demultiplexer X-Git-Tag: 24jan2021_ls180~2106^2~24 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c38d8175b740ce9004c92302daca204275cc48c0;p=litex.git interconnect/stream: add missing part of Demultiplexer --- diff --git a/misoc/interconnect/stream.py b/misoc/interconnect/stream.py index bdbe53a4..58e35bde 100644 --- a/misoc/interconnect/stream.py +++ b/misoc/interconnect/stream.py @@ -142,3 +142,10 @@ class Demultiplexer(Module): setattr(self, "source"+str(i), source) sources.append(source) self.sel = Signal(max=n) + + # # # + + cases = {} + for i, source in enumerate(sources): + cases[i] = Record.connect(self.sink, source) + self.comb += Case(self.sel, cases)