forked from M-Labs/artiq
rtio: support single-master CRI arbiter
This commit is contained in:
parent
a318243083
commit
6c97a97d8c
|
@ -160,6 +160,9 @@ class CRIArbiter(Module):
|
||||||
|
|
||||||
# # #
|
# # #
|
||||||
|
|
||||||
|
if len(masters) == 1:
|
||||||
|
self.comb += masters[0].connect(slave)
|
||||||
|
else:
|
||||||
selected = Signal(max=len(masters))
|
selected = Signal(max=len(masters))
|
||||||
|
|
||||||
# mux master->slave signals
|
# mux master->slave signals
|
||||||
|
|
Loading…
Reference in New Issue