From: Sebastien Bourdeauducq Date: Sun, 7 Jul 2013 16:56:43 +0000 (+0200) Subject: lasmibus/crossbar: simplify master ack generation X-Git-Tag: 24jan2021_ls180~2099^2~535 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7e6fbd31a40d1ad2a0c8d3e2854f3fc5643cc8b6;p=litex.git lasmibus/crossbar: simplify master ack generation --- 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)]