From 91f56aaf0ec9d5f15193fa817ba6024e76085531 Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Wed, 17 May 2023 01:36:42 +0200 Subject: [PATCH] =?UTF-8?q?soc/interconnect/packet:=20Don=E2=80=99t=20bypa?= =?UTF-8?q?ss=20dispatcher=20with=20a=20single=20slave=20if=20it=20can=20b?= =?UTF-8?q?e=20deselected.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- litex/soc/interconnect/packet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/interconnect/packet.py b/litex/soc/interconnect/packet.py index ac7a0bf1e..2886164de 100644 --- a/litex/soc/interconnect/packet.py +++ b/litex/soc/interconnect/packet.py @@ -62,7 +62,7 @@ class Dispatcher(Module): def __init__(self, master, slaves, one_hot=False): if len(slaves) == 0: self.sel = Signal() - elif len(slaves) == 1: + elif len(slaves) == 1 and not one_hot: self.comb += master.connect(slaves.pop()) self.sel = Signal() else: