soc/interconnect/packet: Don’t bypass dispatcher with a single slave if it can be deselected.
This commit is contained in:
parent
782f045b16
commit
91f56aaf0e
|
@ -62,7 +62,7 @@ class Dispatcher(Module):
|
||||||
def __init__(self, master, slaves, one_hot=False):
|
def __init__(self, master, slaves, one_hot=False):
|
||||||
if len(slaves) == 0:
|
if len(slaves) == 0:
|
||||||
self.sel = Signal()
|
self.sel = Signal()
|
||||||
elif len(slaves) == 1:
|
elif len(slaves) == 1 and not one_hot:
|
||||||
self.comb += master.connect(slaves.pop())
|
self.comb += master.connect(slaves.pop())
|
||||||
self.sel = Signal()
|
self.sel = Signal()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue