lasmibus/crossbar: simplify master ack generation

This commit is contained in:
Sebastien Bourdeauducq 2013-07-07 18:56:43 +02:00
parent b68c00d36f
commit 7e6fbd31a4
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class Crossbar(Module):
bank.we.eq(Array(self.masters)[rr.grant].we),
bank.stb.eq(Array(bank_requested)[rr.grant])
]
master_req_acks = [master_req_ack | ((rr.grant == nm) & Array(bank_selected)[rr.grant] & bank.req_ack)
master_req_acks = [master_req_ack | ((rr.grant == nm) & bank_selected[nm] & bank.req_ack)
for nm, master_req_ack in enumerate(master_req_acks)]
master_dat_acks = [master_dat_ack | ((rr.grant == nm) & bank.dat_ack)
for nm, master_dat_ack in enumerate(master_dat_acks)]