soc/interconnect/packet: Don’t bypass dispatcher with a single slave if it can be deselected.

This commit is contained in:
Vegard Storheil Eriksen 2023-05-17 01:36:42 +02:00
parent 782f045b16
commit 91f56aaf0e
1 changed files with 1 additions and 1 deletions

View File

@ -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: