Merge pull request #1692 from zyp/fix_dispatcher_single

soc/interconnect/packet: Don’t bypass dispatcher with a single slave if it can be deselected.
This commit is contained in:
enjoy-digital 2023-05-17 16:31:09 +02:00 committed by GitHub
commit 5115ec3513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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: