From c38d8175b740ce9004c92302daca204275cc48c0 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 5 Oct 2015 00:10:55 +0200 Subject: [PATCH] interconnect/stream: add missing part of Demultiplexer --- misoc/interconnect/stream.py | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- 2.30.2