From 7e6fbd31a40d1ad2a0c8d3e2854f3fc5643cc8b6 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 7 Jul 2013 18:56:43 +0200 Subject: [PATCH] lasmibus/crossbar: simplify master ack generation --- migen/bus/lasmibus.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migen/bus/lasmibus.py b/migen/bus/lasmibus.py index 949530a5..ab9d1520 100644 --- a/migen/bus/lasmibus.py +++ b/migen/bus/lasmibus.py @@ -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)] -- 2.30.2