Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

lasmibus/crossbar: better switching policy

  • Loading branch information...
commit 6d6d232cadd7e531e5566c1115a14c79e559b9eb 1 parent ac2cde0
Sébastien Bourdeauducq authored June 15, 2013

Showing 1 changed file with 2 additions and 5 deletions. Show diff stats Hide diff stats

  1. 7  migen/bus/lasmibus.py
7  migen/bus/lasmibus.py
@@ -65,14 +65,11 @@ def __init__(self, controllers, nmasters, cba_shift):
65 65
 				bank = getattr(controller, "bank"+str(nb))
66 66
 
67 67
 				# arbitrate
68  
-				rr = roundrobin.RoundRobin(nmasters, roundrobin.SP_CE)
  68
+				rr = roundrobin.RoundRobin(nmasters, roundrobin.SP_WITHDRAW)
69 69
 				self.submodules += rr
70 70
 				bank_selected = [cs & (ba == nb) for cs, ba in zip(controller_selected, m_ba)]
71 71
 				bank_requested = [bs & master.stb for bs, master in zip(bank_selected, self.masters)]
72  
-				self.comb += [
73  
-					rr.request.eq(Cat(*bank_requested)),
74  
-					rr.ce.eq(~bank.stb | bank.ack)
75  
-				]
  72
+				self.comb += rr.request.eq(Cat(*bank_requested)),
76 73
 
77 74
 				# route requests
78 75
 				self.comb += [

0 notes on commit 6d6d232

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