Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

lasmibus/crossbar: better switching policy

  • Loading branch information...
commit 6d6d232cadd7e531e5566c1115a14c79e559b9eb 1 parent ac2cde0
@sbourdeauducq sbourdeauducq authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 migen/bus/lasmibus.py
View
7 migen/bus/lasmibus.py
@@ -65,14 +65,11 @@ def __init__(self, controllers, nmasters, cba_shift):
bank = getattr(controller, "bank"+str(nb))
# arbitrate
- rr = roundrobin.RoundRobin(nmasters, roundrobin.SP_CE)
+ rr = roundrobin.RoundRobin(nmasters, roundrobin.SP_WITHDRAW)
self.submodules += rr
bank_selected = [cs & (ba == nb) for cs, ba in zip(controller_selected, m_ba)]
bank_requested = [bs & master.stb for bs, master in zip(bank_selected, self.masters)]
- self.comb += [
- rr.request.eq(Cat(*bank_requested)),
- rr.ce.eq(~bank.stb | bank.ack)
- ]
+ self.comb += rr.request.eq(Cat(*bank_requested)),
# route requests
self.comb += [

0 comments on commit 6d6d232

Please sign in to comment.
Something went wrong with that request. Please try again.