mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
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:
commit
5115ec3513
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue